wx.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.
Window Styles¶
This class supports the following styles:
wx.LI_HORIZONTAL: Creates a horizontal line.wx.LI_VERTICAL: Creates a vertical line.
See also
Class Hierarchy¶
Methods Summary¶
Default constructor. |
|
Creates the static line for two-step construction. |
|
This static function returns the size which will be given to the smaller dimension of the static line, i.e. |
|
Returns |
Class API¶
- class wx.StaticLine(Control)¶
Possible constructors:
StaticLine() -> None StaticLine(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=LI_HORIZONTAL, name=StaticLineNameStr) -> None
A static line is just a line which may be used in a dialog to separate the groups of controls.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self)
Default constructor.
- Return type:
None
__init__ (self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=LI_HORIZONTAL, name=StaticLineNameStr)
Constructor, creating and showing a static line.
- Parameters:
parent (wx.Window) – Parent window. Must not be
None.id (wx.WindowID) – Window identifier. The value
wx.ID_ANYindicates a default value.pos (wx.Point) – Window position. If
wx.DefaultPositionis specified then a default position is chosen.size (wx.Size) – Size. Note that either the height or the width (depending on whether the line if horizontal or vertical) is ignored.
style (long) – Window style (either
wx.LI_HORIZONTALorwx.LI_VERTICAL).name (string) – Window name.
- Return type:
None
See also
- Create(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=LI_HORIZONTAL, name=StaticLineNameStr)¶
Creates the static line for two-step construction.
See wx.StaticLine for further details.
- static GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)¶
- Parameters:
variant (WindowVariant)
- Return type:
- static 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.
- Return type:
int
- IsVertical(self)¶
Returns
Trueif the line is vertical,Falseif horizontal.- Return type:
bool
