[PyCrust-cvs] PyCrust/wxd Sizers.py,1.4,1.5
Brought to you by:
pobrien
From: <po...@us...> - 2003-03-25 23:12:45
|
Update of /cvsroot/pycrust/PyCrust/wxd In directory sc8-pr-cvs1:/tmp/cvs-serv9021 Modified Files: Sizers.py Log Message: Finished. Index: Sizers.py =================================================================== RCS file: /cvsroot/pycrust/PyCrust/wxd/Sizers.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Sizers.py 25 Mar 2003 20:24:28 -0000 1.4 --- Sizers.py 25 Mar 2003 23:12:40 -0000 1.5 *************** *** 360,366 **** class GridSizer(Sizer): """A grid sizer lays out its children in a two-dimensional table ! with all cells having the same size: the width of each cell is the width of the widest child, the height of each cell is the height ! of the tallest child.""" def __init__(self, rows=1, cols=0, vgap=0, hgap=0): --- 360,366 ---- class GridSizer(Sizer): """A grid sizer lays out its children in a two-dimensional table ! where all cells have the same size: the width of each cell is the width of the widest child, the height of each cell is the height ! of the tallest child. See also the FlexGridSizer.""" def __init__(self, rows=1, cols=0, vgap=0, hgap=0): *************** *** 417,432 **** class FlexGridSizer(GridSizer): ! """""" def __init__(self, rows=1, cols=0, vgap=0, hgap=0): ! """""" pass def AddGrowableCol(self, idx): ! """""" pass def AddGrowableRow(self, idx): ! """""" pass --- 417,443 ---- class FlexGridSizer(GridSizer): ! """A flex grid sizer lays out its children in a two-dimensional ! table where all cells in one row have the same height and all ! cells in one column have the same width, but all cells are not ! necessarily the same height and width, as in the GridSizer.""" def __init__(self, rows=1, cols=0, vgap=0, hgap=0): ! """Create a GridSizer instance. ! ! rows and cols - the number of rows and columns in the grid; if ! either is zero, it will be calculated as the number of ! children in the sizer, allowing the sizer grow dynamically. ! ! vgap and hgap - extra space between all cells, in pixels.""" pass def AddGrowableCol(self, idx): ! """Specify that column idx (starting from zero) should expand ! if there is extra space available to the sizer.""" pass def AddGrowableRow(self, idx): ! """Specify that row idx (starting from zero) should expand if ! there is extra space available to the sizer.""" pass *************** *** 436,456 **** def RecalcSizes(self): ! """""" pass def RemoveGrowableCol(self, idx): ! """""" pass def RemoveGrowableRow(self, idx): ! """""" pass class NotebookSizer(Sizer): ! """""" def __init__(self, nb): ! """""" pass --- 447,470 ---- def RecalcSizes(self): ! """Recalculate sizes, then set the size of its children ! (calling SetSize if child is a window). Do not call directly.""" pass def RemoveGrowableCol(self, idx): ! """Specify that column idx is no longer growable.""" pass def RemoveGrowableRow(self, idx): ! """Specify that row idx is no longer growable.""" pass class NotebookSizer(Sizer): ! """NotebookSizer works with a notebook to determine the size of ! the biggest page and report an adjusted minimal size to a more ! toplevel sizer. Do not add children to a NotebookSizer.""" def __init__(self, nb): ! """Create a NotebookSizer instance for notebook.""" pass *************** *** 460,468 **** def GetNotebook(self): ! """""" pass def RecalcSizes(self): ! """""" pass --- 474,482 ---- def GetNotebook(self): ! """Return the notebook associated with the sizer.""" pass def RecalcSizes(self): ! """Recalculate size. Do not call directly.""" pass |