main logo
Subject: [dabo-dev] dabo Commit 1614
Author: Ed Leafe
Posted: 2005/11/30 14:08:51
 
View Entire Thread
New Search


dabo Commit
Revision 1614
Date: 2005-11-30 11:08:51 -0800 (Wed, 30 Nov 2005)
Author: ed

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

Log:
Fixed bug that prevented dEditor from working.


Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py 2005-11-30 17:11:39 UTC (rev 1613)
+++ trunk/dabo/ui/uiwx/dPemMixin.py 2005-11-30 19:08:51 UTC (rev 1614)
@@ -227,10 +227,9 @@
def _initEvents(self):
# Bind wx events to handlers that re-raise the Dabo events:
self.Bind(wx.EVT_WINDOW_DESTROY, self.__onWxDestroy)
-
self.Bind(wx.EVT_IDLE, self.__onWxIdle)

- if self.BaseClass.__name__ == "dGrid":
+ if isinstance(self, dabo.ui.dGrid):
## Ugly workaround for grids not firing focus events from the keyboard
## correctly.
self._lastGridFocusTimestamp = 0.0
@@ -240,7 +239,6 @@
self.GetGridWindow().Bind(wx.EVT_SET_FOCUS, self.__onWxGotFocus)

self.Bind(wx.EVT_SET_FOCUS, self.__onWxGotFocus)
-
self.Bind(wx.EVT_KILL_FOCUS, self.__onWxLostFocus)

self.Bind(wx.EVT_CHAR, self.__onWxKeyChar)
@@ -296,7 +294,7 @@


def __onWxGotFocus(self, evt):
- if self.BaseClass.__name__ == "dGrid":
+ if isinstance(self, dabo.ui.dGrid):
## Continuation of ugly workaround for grid focus event. Only raise the
## Dabo event if we are reasonably sure it isn't a repeat.
prev = self._lastGridFocusTimestamp





 
©2005 Ed Leafe
<-- Prior Message New Search Next Message -->