Header control above a collapsible pane.
The collapsible header usually consists of a small indicator of the collapsed state and the label text beside it. This class is used by the generic implementation of wx.CollapsiblePane but maybe used in more complex layouts for other uses.
Handlers bound for the following event types will receive a wx.CommandEvent parameter.
EVT_COLLAPSIBLEHEADER_CHANGED: User changed the collapsed state.
Added in version 4.1/wxWidgets-3.1.0.
See also
Create the control initialized using the default constructor. |
|
Returns |
|
Set collapsed state of the header. |
Possible constructors:
CollapsibleHeaderCtrl() -> None
CollapsibleHeaderCtrl(parent : Window, id: int=ID_ANY, label: str="",
pos: Point=DefaultPosition, size: Size=DefaultSize, style:
int=BORDER_NONE, validator: Validator=DefaultValidator, name:
str=CollapsibleHeaderCtrlNameStr) -> None
Header control above a collapsible pane.
__init__ (self)
None
__init__ (self, parent : Window, id: int=ID_ANY, label: str=””, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=BORDER_NONE, validator: Validator=DefaultValidator, name: str=CollapsibleHeaderCtrlNameStr)
Constructor fully creating the control.
The arguments have the usual meanings and only parent is typically required.
parent (wx.Window)
id (wx.WindowID)
label (string)
pos (wx.Point)
size (wx.Size)
style (long)
validator (wx.Validator)
name (string)
None
Create the control initialized using the default constructor.
This method can be used to finish the control creation if it hadn’t been done already by using the non-default constructor.
parent (wx.Window)
id (wx.WindowID)
label (string)
pos (wx.Point)
size (wx.Size)
style (long)
validator (wx.Validator)
name (string)
bool
variant (WindowVariant)
Returns true
if the control is collapsed.
bool
See also
Set collapsed state of the header.
collapsed (bool)
None