Python: module pyui.layouts

pyui.layouts | index c:\ninja\projects\pyui\pyui\layouts.py

`# PyUI
# Copyright (C) 2001-2002 Sean C. Riley
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of version 2.1 of the GNU Lesser General Public
# License as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA`

Classes
`` |  | LayoutManager AbsoluteLayoutManager BorderLayoutManager FlowLayoutManager GridLayoutManager TableLayoutManager
class AbsoluteLayoutManager(LayoutManager)
`` | `absolute layout manager uses direct co-ordinates in a virtual space specified when created option must be specified as a (x,y) tuple when adding children`
| Methods defined here: __init__(self, w=100, h=100) begin(self) canResize(self) end(self) placeChild(self, child, option) setPanel(self, panel) Data and non-method functions defined here: __doc__ = '\n absolute layout manager\n uses direct co-...cified as a (x,y) tuple when adding children\n ' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.` __module__ = 'pyui.layouts' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.` Methods inherited from LayoutManager: destroy(self) scanChild(self, child, option)
class BorderLayoutManager(LayoutManager)
`` | `Border layout manager preserves one-dimensional sizes of children will not change the size of the parent`
| Methods defined here: __init__(self, padding=2) begin(self) canResize(self) destroy(self) placeChild(self, child, option) scanChild(self, child, option) Data and non-method functions defined here: CENTER = 5 `int(x[, base]) -> integer Convert a string or number to an integer, if possible. A floating point argument will be truncated towards zero (this does not include a string representation of a floating point number!) When converting a string, use the optional base. It is an error to supply a base when converting a non-string.` EAST = 2 `int(x[, base]) -> integer Convert a string or number to an integer, if possible. A floating point argument will be truncated towards zero (this does not include a string representation of a floating point number!) When converting a string, use the optional base. It is an error to supply a base when converting a non-string.` NORTH = 3 `int(x[, base]) -> integer Convert a string or number to an integer, if possible. A floating point argument will be truncated towards zero (this does not include a string representation of a floating point number!) When converting a string, use the optional base. It is an error to supply a base when converting a non-string.` SOUTH = 4 `int(x[, base]) -> integer Convert a string or number to an integer, if possible. A floating point argument will be truncated towards zero (this does not include a string representation of a floating point number!) When converting a string, use the optional base. It is an error to supply a base when converting a non-string.` WEST = 1 `int(x[, base]) -> integer Convert a string or number to an integer, if possible. A floating point argument will be truncated towards zero (this does not include a string representation of a floating point number!) When converting a string, use the optional base. It is an error to supply a base when converting a non-string.` __doc__ = 'Border layout manager\n preserves one-dimensio...n\n will not change the size of the parent\n ' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.` __module__ = 'pyui.layouts' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.` Methods inherited from LayoutManager: end(self) setPanel(self, panel)
class FlowLayoutManager(LayoutManager)
`` | `Flow layout manager preserves sizes of children - horizontal layout`
| Methods defined here: __init__(self, padding=0) begin(self) canResize(self) placeChild(self, child, option) Data and non-method functions defined here: NEWLINE = 1 `int(x[, base]) -> integer Convert a string or number to an integer, if possible. A floating point argument will be truncated towards zero (this does not include a string representation of a floating point number!) When converting a string, use the optional base. It is an error to supply a base when converting a non-string.` __doc__ = 'Flow layout manager\n preserves sizes of children - horizontal layout\n ' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.` __module__ = 'pyui.layouts' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.` Methods inherited from LayoutManager: destroy(self) end(self) scanChild(self, child, option) setPanel(self, panel)
class GridLayoutManager(LayoutManager)
`` | `Grid layout manager resizes children in to a grid`
| Methods defined here: __init__(self, columns, rows, padding=3) begin(self) placeChild(self, child, option) Data and non-method functions defined here: __doc__ = 'Grid layout manager\n resizes children in to a grid\n ' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.` __module__ = 'pyui.layouts' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.` Methods inherited from LayoutManager: canResize(self) destroy(self) end(self) scanChild(self, child, option) setPanel(self, panel)
class LayoutManager
`` | `base class for all layout managers`
| Methods defined here: __init__(self) begin(self) canResize(self) destroy(self) end(self) placeChild(self, child, option) scanChild(self, child, option) setPanel(self, panel) Data and non-method functions defined here: __doc__ = 'base class for all layout managers\n ' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.` __module__ = 'pyui.layouts' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.`
class TableLayoutManager(LayoutManager)
`` | `Has a table grid. children can be placed into the grid and take up rectangular sections of multiple cells.`
| Methods defined here: __init__(self, w, h, padding=2) begin(self) placeChild(self, child, option) `placing children in the grid takes an x,y position and a width and height in cells that the child takes up. If a cell is occupied a child cannot be placed there.` Data and non-method functions defined here: __doc__ = 'Has a table grid. children can be placed into th...\n rectangular sections of multiple cells.\n ' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.` __module__ = 'pyui.layouts' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.` Methods inherited from LayoutManager: canResize(self) destroy(self) end(self) scanChild(self, child, option) setPanel(self, panel)

Data
`` |  | __file__ = r'.\pyui\layouts.pyc' __name__ = 'pyui.layouts'