.. include:: headings.inc .. _StaticLine: ========================================================================================================================================== |phoenix_title| **StaticLine** ========================================================================================================================================== A static line is just a line which may be used in a dialog to separate the groups of controls. The line may be only vertical or horizontal. Moreover, not all ports (notably not wxGTK) support specifying the transversal direction of the line (e.g. height for a horizontal line) so for maximal portability you should specify it as DefaultCoord. .. _StaticLine-styles: |styles| Window Styles ================================ This class supports the following styles: - ``LI_HORIZONTAL``: Creates a horizontal line. - ``LI_VERTICAL``: Creates a vertical line. .. seealso:: :ref:`StaticBox` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **StaticLine** .. raw:: html

Inheritance diagram of StaticLine

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~StaticLine.__init__` Default constructor. :meth:`~StaticLine.Create` Creates the static line for two-step construction. :meth:`~StaticLine.GetDefaultSize` This static function returns the size which will be given to the smaller dimension of the static line, i.e. :meth:`~StaticLine.IsVertical` Returns ``True`` if the line is vertical, ``False`` if horizontal. ================================================================================ ================================================================================ | |api| Class API =============== .. class:: StaticLine(Control) A static line is just a line which may be used in a dialog to separate the groups of controls. **Possible constructors**:: StaticLine() StaticLine(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=LI_HORIZONTAL, name=StaticLineNameStr) .. method:: __init__(self, *args, **kw) |overload| **Overloaded Implementations**: **~~~** **__init__** `(self)` Default constructor. **~~~** **__init__** `(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=LI_HORIZONTAL, name=StaticLineNameStr)` Constructor, creating and showing a static line. :param `parent`: Parent window. Must not be ``None``. :type `parent`: Window :param `id`: Window identifier. The value ``ID_ANY`` indicates a default value. :type `id`: int :param `pos`: Window position. If ``DefaultPosition`` is specified then a default position is chosen. :type `pos`: Point :param `size`: Size. Note that either the height or the width (depending on whether the line if horizontal or vertical) is ignored. :type `size`: Size :param `style`: Window style (either ``LI_HORIZONTAL`` or ``LI_VERTICAL``). :type `style`: long :param `name`: Window name. :type `name`: string .. seealso:: :meth:`Create` **~~~** .. method:: Create(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=LI_HORIZONTAL, name=StaticLineNameStr) Creates the static line for two-step construction. See :ref:`StaticLine` for further details. :param `parent`: :type `parent`: Window :param `id`: :type `id`: int :param `pos`: :type `pos`: Point :param `size`: :type `size`: Size :param `style`: :type `style`: long :param `name`: :type `name`: string :rtype: `bool` .. staticmethod:: GetDefaultSize() This static function returns the size which will be given to the smaller dimension of the static line, i.e. its height for a horizontal line or its width for a vertical one. :rtype: `int` .. method:: IsVertical(self) Returns ``True`` if the line is vertical, ``False`` if horizontal. :rtype: `bool`