dabo Commit Revision 1079 Date: 2005-07-30 09:19:33 -0700 (Sat, 30 Jul 2005) Author: ed
Changed: U trunk/ui/uiwx/dGridSizer.py
Log: Improved the handling of adding spacers to the grid sizer.
Diff: Modified: trunk/ui/uiwx/dGridSizer.py =================================================================== --- trunk/ui/uiwx/dGridSizer.py 2005-07-30 03:34:36 UTC (rev 1078) +++ trunk/ui/uiwx/dGridSizer.py 2005-07-30 16:19:33 UTC (rev 1079) @@ -41,8 +41,10 @@ cell as specified by the Max* properties. """ (targetRow, targetCol) = self.determineAvailableCell(row, col) - if isinstance(item, tuple): + if isinstance(item, (tuple, int)): # spacer + if isinstance(item, int): + item = (item, item) self.Add(item, (targetRow, targetCol) ) else: # item is the window to add to the sizer
©2005 Ed Leafe |