dabo Commit
Revision 1537
Date: 2005-11-10 13:26:33 -0800 (Thu, 10 Nov 2005)
Author: paul
Changed:
U trunk/dabo/ui/uiwx/dDropdownList.py
Log:
Reverted the change in dDropdownList that sends a Hit when Value changes.
Diff:
Modified: trunk/dabo/ui/uiwx/dDropdownList.py
===================================================================
--- trunk/dabo/ui/uiwx/dDropdownList.py 2005-11-10 19:21:16 UTC (rev 1536)
+++ trunk/dabo/ui/uiwx/dDropdownList.py 2005-11-10 21:26:33 UTC (rev 1537)
@@ -15,26 +15,20 @@
preClass = wx.PreChoice
dcm.dControlItemMixin.__init__(self, preClass, parent,
properties, *args, **kwargs)
+
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)
-
+
+ def _onWxHit(self, evt):
# 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()
+ super(dDropdownList, self)._onWxHit(evt)
+
class _dDropdownList_test(dDropdownList):
def initProperties(self):
# Simulating a database
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev