dabo Commit
Revision 1463
Date: 2005-10-17 15:44:09 -0700 (Mon, 17 Oct 2005)
Author: paul
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
These fix a couple of the problems exposed by the new __getattr__ code
in dEvents.
Something we need to consider is that we are now inconsistent in
casing: referring to evt.row is more like a property interface and
therefore there's an argument for making it evt.Row instead.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2005-10-17 22:21:22 UTC (rev 1462)
+++ trunk/dabo/ui/uiwx/dGrid.py 2005-10-17 22:44:09 UTC (rev 1463)
@@ -2418,8 +2418,8 @@
# menu. If we get a menu back from the user hook, we display it.
# First though, make the cell the user right-clicked on the
current cell:
- self.CurrentRow = evt.GetRow()
- self.CurrentColumn = evt.GetCol()
+ self.CurrentRow = evt.row
+ self.CurrentColumn = evt.col
position = evt.EventData["position"]
menu = dabo.ui.dMenu()
@@ -2523,7 +2523,7 @@
self.onEscapeAction()
evt.stop()
elif char and (self.Searchable and
self.Columns[self.CurrentColumn].Searchable) \
- and (char.isalnum() or char.isspace()) and not
evt.HasModifiers():
+ and (char.isalnum() or char.isspace() and not
evt.hasModifiers):
self.addToSearchStr(char)
# For some reason, without this the key happens
twice
evt.stop()
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev