Bidirectional radio button with extension

I have a container with a class extension:

[code]class Thing:
“”"
Thing description
“”"
def init(self, ownerComp):
# The component to which this extension is attached
self.ownerComp = ownerComp

	self._fruit = 0
	TDF.createProperty(self, 'Fruit', value=self._fruit, dependable=True, readOnly=True)
	
def SetFruit(self, fruit):

	self._fruit = fruit[/code]

I’d like to have a radio button attempt to call SetFruit. If it succeeds (with this example it always does) modify self._fruit and keep the radio UI correct. Additionally, if some other python script called SetFruit(), the radio should update. Are the radios from /gal right for this?

The problem with the example file I’ve attached is that the radio always changes upon clicking even if the body of SetFruit is ‘pass’.

Edit: A more basic problem to solve would be getting “Push Value to Source” to work for a Custom parameter me.parent().par.Fruit rather than a created property me.parent().Fruit

Edit: Also I’m wondering if tdu.Dependency() is useful here.
Bidirectional_menu_and_extension.1.toe (154 KB)