dabo Commit
Revision 3311
Date: 2007-08-14 13:35:15 -0700 (Tue, 14 Aug 2007)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/3311

Changed:
U   trunk/dabo/ui/uiwx/dComboBox.py

Log:
This should fix ticket #1061 (the one where enter key doesn't fire Hit for 
dComboBox.)  Please test and let us know!


Diff:
Modified: trunk/dabo/ui/uiwx/dComboBox.py
===================================================================
--- trunk/dabo/ui/uiwx/dComboBox.py     2007-08-14 20:05:33 UTC (rev 3310)
+++ trunk/dabo/ui/uiwx/dComboBox.py     2007-08-14 20:35:15 UTC (rev 3311)
@@ -26,6 +26,15 @@
                dcm.dControlItemMixin.__init__(self, preClass, parent, 
properties, attProperties, *args, **kwargs)
 
 
+       def _preInitUI(self, kwargs):
+               print kwargs
+               style = kwargs.get("style", 0)
+               style |= wx.PROCESS_ENTER
+               kwargs["style"] = style
+               print kwargs
+               return kwargs
+
+
        def _initEvents(self):
                super(dComboBox, self)._initEvents()
                self.Bind(wx.EVT_COMBOBOX, self.__onComboBox)




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to