dabo Commit Revision 985 Date: 2005-03-31 17:57:51 -0800 (Thu, 31 Mar 2005) Author: ed
Changed: U trunk/ui/uiwx/dGridSizer.py
Log: Forgot to commit this file in the recent stream of changes.
Diff: Modified: trunk/ui/uiwx/dGridSizer.py =================================================================== --- trunk/ui/uiwx/dGridSizer.py 2005-04-01 01:20:28 UTC (rev 984) +++ trunk/ui/uiwx/dGridSizer.py 2005-04-01 01:57:51 UTC (rev 985) @@ -33,8 +33,8 @@ def append(self, item, layout="normal", row=-1, col=-1, - rowSpan=1, colSpan=1, alignment=("middle", "left"), - border=0, borderFlags=("all",), flag=None): + rowSpan=1, colSpan=1, alignment=None,halign="left", + valign="middle", border=0, borderFlags=("all",), flag=None): """ Inserts the passed item at the specified position in the grid. If no position is specified, the item is inserted at the first available open cell as specified by the Max* properties. @@ -45,7 +45,7 @@ self.Add(item, (targetRow, targetCol) ) else: # item is the window to add to the sizer - _wxFlags = self._getWxFlags(alignment, borderFlags, layout) + _wxFlags = self._getWxFlags(alignment, halign, valign, borderFlags, layout) if flag: _wxFlags = _wxFlags | flag self.Add(item, (targetRow, targetCol), span=(rowSpan, colSpan),
©2005 Ed Leafe |