dabo Commit
Revision 5534
Date: 2009-11-25 18:36:42 -0800 (Wed, 25 Nov 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5534

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

Log:
Fixed some old references that have been replaced by the HighRow and HighCol 
properties.

Diff:
Modified: trunk/dabo/ui/uiwx/dGridSizer.py
===================================================================
--- trunk/dabo/ui/uiwx/dGridSizer.py    2009-11-18 23:40:21 UTC (rev 5533)
+++ trunk/dabo/ui/uiwx/dGridSizer.py    2009-11-26 02:36:42 UTC (rev 5534)
@@ -97,8 +97,8 @@
                """ Deletes any items contained in the specified row, and
                then moves all items below it up to fill the space.
                """
-               for c in range(self._highCol+1):
-                       szitm = self.FindItemAtPosition( (rowNum, c) )
+               for c in range(self.HighCol + 1):
+                       szitm = self.FindItemAtPosition((rowNum, c))
                        if not szitm:
                                continue
                        itm = None
@@ -144,10 +144,9 @@
                                self.remove(itm)
                # OK, all items are removed. Now move all higher columns to the 
left
                for r in range(self.HighRow+1):
-                       for c in range(colNum+1, self._highCol+1):
+                       for c in range(colNum+1, self.HighCol+1):
                                self.moveCell(r, c, r, c-1, delay=True)
                self.layout()
-               self._highCol -= 1
                
                
        def setColExpand(self, expand, colNum, proportion=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/[email protected]

Reply via email to