From e7e3eca7d7fbf3b66021d6ca25b604d931b8b785 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauld.mccarthy@gmail.com> Date: Thu, 1 May 2014 14:45:33 +0100 Subject: [PATCH] Made internal listener names a bit more explicit --- fsl/props/build.py | 2 +- fsl/props/widgets.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/fsl/props/build.py b/fsl/props/build.py index 84a1a1356..addfc5e9a 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 dce20d966..bc16bca09 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 -- GitLab