dabo Commit
Revision 4194
Date: 2008-06-26 08:33:38 -0700 (Thu, 26 Jun 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4194

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

Log:
Fixed some more cases where expected errors weren't handled properly.


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2008-06-26 14:15:03 UTC (rev 4193)
+++ trunk/dabo/ui/uiwx/dGrid.py 2008-06-26 15:33:38 UTC (rev 4194)
@@ -3512,8 +3512,9 @@
                                        row = bott
                                else:
                                        row = top
-                               self.SetGridCursor(row, self._lastCol)
-                               self.SelectRow(row)
+                               if self._lastCol is not None:
+                                       self.SetGridCursor(row, self._lastCol)
+                                       self.SelectRow(row)
                elif mode == wx.grid.Grid.wxGridSelectColumns:
                        if (left != right) or (left != origCol):
                                # Attempting to select a range
@@ -4356,7 +4357,7 @@
                ## pkm: we can't call this until after the grid is fully 
constructed. Need to fix.
                try:
                        tbl = self.GetTable()
-               except AttributeError:
+               except TypeError:
                        tbl = None
                if not tbl:
                        try:




_______________________________________________
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/[EMAIL PROTECTED]

Reply via email to