diff --git a/fsl/props/build.py b/fsl/props/build.py index 84a1a1356758fbedbeaa57c116a9a35abb40b304..addfc5e9a5de0cc804a66aeae2a9bacf43630c96 100644 --- a/fsl/props/build.py +++ b/fsl/props/build.py @@ -653,7 +653,7 @@ def _prepareEvents(hasProps, propGui): # add a callback listener to every property for propObj, propName in zip(propObjs, propNames): - lName = 'ChangeEvent_{}'.format(propName) + lName = 'build_py_WhenEvent' propObj.addListener(hasProps, lName, onChange) diff --git a/fsl/props/widgets.py b/fsl/props/widgets.py index dce20d966b0f032afccf557b1013e4dd421e8ce5..bc16bca093a19086713eeae3938af7a380f73afc 100644 --- a/fsl/props/widgets.py +++ b/fsl/props/widgets.py @@ -85,7 +85,7 @@ def _propBind(hasProps, propObj, propVal, guiObj, evType, labelMap=None): if not isinstance(evType, Iterable): evType = [evType] - listenerName = 'propBind_{}'.format(id(guiObj)) + listenerName = 'WidgetBind_{}'.format(id(guiObj)) valMap = None if labelMap is not None: @@ -160,7 +160,9 @@ def _setupValidation(widget, hasProps, propObj, propVal): # associated with multiple variables, and we don't want # the widgets associated with those other variables to # change background. - propVal.addListener('changeBGOnValidate', _changeBGOnValidate) + propVal.addListener( + 'widgets_py_ChangeBG_{}'.format(id(widget)), + _changeBGOnValidate) # Validate the initial property value, # so the background is appropriately set