Skip to content
Snippets Groups Projects
Commit e7e3eca7 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Made internal listener names a bit more explicit

parent e0cd0f38
No related branches found
No related tags found
No related merge requests found
...@@ -653,7 +653,7 @@ def _prepareEvents(hasProps, propGui): ...@@ -653,7 +653,7 @@ def _prepareEvents(hasProps, propGui):
# add a callback listener to every property # add a callback listener to every property
for propObj, propName in zip(propObjs, propNames): for propObj, propName in zip(propObjs, propNames):
lName = 'ChangeEvent_{}'.format(propName) lName = 'build_py_WhenEvent'
propObj.addListener(hasProps, lName, onChange) propObj.addListener(hasProps, lName, onChange)
......
...@@ -85,7 +85,7 @@ def _propBind(hasProps, propObj, propVal, guiObj, evType, labelMap=None): ...@@ -85,7 +85,7 @@ def _propBind(hasProps, propObj, propVal, guiObj, evType, labelMap=None):
if not isinstance(evType, Iterable): evType = [evType] if not isinstance(evType, Iterable): evType = [evType]
listenerName = 'propBind_{}'.format(id(guiObj)) listenerName = 'WidgetBind_{}'.format(id(guiObj))
valMap = None valMap = None
if labelMap is not None: if labelMap is not None:
...@@ -160,7 +160,9 @@ def _setupValidation(widget, hasProps, propObj, propVal): ...@@ -160,7 +160,9 @@ def _setupValidation(widget, hasProps, propObj, propVal):
# associated with multiple variables, and we don't want # associated with multiple variables, and we don't want
# the widgets associated with those other variables to # the widgets associated with those other variables to
# change background. # change background.
propVal.addListener('changeBGOnValidate', _changeBGOnValidate) propVal.addListener(
'widgets_py_ChangeBG_{}'.format(id(widget)),
_changeBGOnValidate)
# Validate the initial property value, # Validate the initial property value,
# so the background is appropriately set # so the background is appropriately set
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment