.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. _wx.CollapsibleHeaderCtrl:
==========================================================================================================================================
|phoenix_title| **wx.CollapsibleHeaderCtrl**
==========================================================================================================================================
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 :ref:`wx.CollapsiblePane` but maybe used in more complex layouts for other uses.
.. _CollapsibleHeaderCtrl-events:
|events| Events Emitted by this Class
=====================================
Handlers bound for the following event types will receive a :ref:`wx.CommandEvent` parameter.
- EVT_COLLAPSIBLEHEADER_CHANGED: User changed the collapsed state.
.. versionadded:: 4.1/wxWidgets-3.1.0
.. seealso:: :ref:`wx.CollapsiblePane`
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
CollapsibleHeaderCtrl:
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.CollapsibleHeaderCtrl.__init__`
:meth:`~wx.CollapsibleHeaderCtrl.Create` Create the control initialized using the default constructor.
:meth:`~wx.CollapsibleHeaderCtrl.GetClassDefaultAttributes`
:meth:`~wx.CollapsibleHeaderCtrl.IsCollapsed` Returns ``true`` if the control is collapsed.
:meth:`~wx.CollapsibleHeaderCtrl.SetCollapsed` Set collapsed state of the header.
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: wx.CollapsibleHeaderCtrl(Control)
**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.
.. method:: __init__(self, *args, **kw)
|overload| **Overloaded Implementations:**
:html:`
`
**__init__** `(self)`
:rtype: `None`
:html:`
`
**__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.
:param `parent`:
:type `parent`: wx.Window
:param `id`:
:type `id`: wx.WindowID
:param `label`:
:type `label`: string
:param `pos`:
:type `pos`: wx.Point
:param `size`:
:type `size`: wx.Size
:param `style`:
:type `style`: long
:param `validator`:
:type `validator`: wx.Validator
:param `name`:
:type `name`: string
:rtype: `None`
:html:`
`
.. method:: Create(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)
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.
:param `parent`:
:type `parent`: wx.Window
:param `id`:
:type `id`: wx.WindowID
:param `label`:
:type `label`: string
:param `pos`:
:type `pos`: wx.Point
:param `size`:
:type `size`: wx.Size
:param `style`:
:type `style`: long
:param `validator`:
:type `validator`: wx.Validator
:param `name`:
:type `name`: string
:rtype: `bool`
.. staticmethod:: GetClassDefaultAttributes(variant: WindowVariant=WINDOW_VARIANT_NORMAL)
:param `variant`:
:type `variant`: wx.WindowVariant
:rtype: :ref:`wx.VisualAttributes`
.. method:: IsCollapsed(self)
Returns ``true`` if the control is collapsed.
:rtype: `bool`
.. seealso:: :meth:`SetCollapsed`
.. method:: SetCollapsed(self, collapsed: bool=True)
Set collapsed state of the header.
:param `collapsed`:
:type `collapsed`: bool
:rtype: `None`