dabo Commit
Revision 3451
Date: 2007-10-10 13:11:55 -0700 (Wed, 10 Oct 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3451

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

Log:
Fixed some broken code that was preventing the grid from properly processing a 
cell selection event. 


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2007-10-10 19:24:01 UTC (rev 3450)
+++ trunk/dabo/ui/uiwx/dGrid.py 2007-10-10 20:11:55 UTC (rev 3451)
@@ -1645,9 +1645,8 @@
                # Flag to indicate we are in a range selection event
                self._inRangeSelect = False
                # Flag to indicate we are in a selection update event
-               self._inUpdateSelection = True
+               self._inUpdateSelection = False
 
-
                # These hold the values that affect row/col hiliting
                self._selectionForeColor = "black"
                self._selectionBackColor = "yellow"
@@ -3268,7 +3267,7 @@
 
 
        def __onWxGridSelectCell(self, evt):
-               if getattr(self, "_inSelect", False):
+               if getattr(self, "_inSelect", False) or getattr(self, 
"_inUpdateSelection", False):
                        # Avoid recursion
                        return
                if self.ColumnCount == 0:




_______________________________________________
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