dabo Commit
Revision 1533
Date: 2005-11-10 09:29:23 -0800 (Thu, 10 Nov 2005)
Author: ed
Changed:
U trunk/dabo/ui/uiwx/dDropdownList.py
Log:
Added the raising of a Hit event when the value of a dropdown list is changed
programmatically.
Diff:
Modified: trunk/dabo/ui/uiwx/dDropdownList.py
===================================================================
--- trunk/dabo/ui/uiwx/dDropdownList.py 2005-11-09 23:43:30 UTC (rev 1532)
+++ trunk/dabo/ui/uiwx/dDropdownList.py 2005-11-10 17:29:23 UTC (rev 1533)
@@ -18,12 +18,19 @@
def _initEvents(self):
super(dDropdownList, self)._initEvents()
self.Bind(wx.EVT_CHOICE, self._onWxHit)
+
+ # Changing the value in a dropdown list should fire the Hit
event.
+ self.bindEvent(dEvents.ValueChanged, self._onValChanged)
# wx.Choice doesn't seem to emit lostfocus and gotfocus events.
Therefore,
# flush the value on every hit.
self.bindEvent(dEvents.Hit, self.__onHit)
+ def _onValChanged(self, evt):
+ self.raiseEvent(dEvents.Hit)
+
+
def __onHit(self, evt):
self.flushValue()
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev