PyCollapsiblePane is a container with an embedded button-like control which can be used by the user to collapse or expand the pane’s contents.
__init__ | Default class constructor. |
Collapse | Collapses or expands the pane window. |
DoGetBestSize | Gets the size which best suits the window: for a control, it would be the |
Expand | Same as Collapse (False). |
GetAGWWindowStyleFlag | Returns the PyCollapsiblePane window style. |
GetBorder | Returns the PyCollapsiblePane border in pixels (platform dependent). |
GetBtnLabel | Returns the button label. |
GetButton | Returns the button associated with PyCollapsiblePane. |
GetButtonFont | Returns the button font. |
GetExpanderDimensions | Returns the expander dimensions, a tuple of integers representing the |
GetLabel | Returns the button label. |
GetPane | Returns a reference to the pane window. |
HasAGWFlag | Returns whether a flag is present in the PyCollapsiblePane style. |
IsCollapsed | Returns True if the pane window is currently hidden. |
IsExpanded | Returns True if the pane window is currently shown. |
Layout | Layout the PyCollapsiblePane. |
OnButton | Handles the wx.EVT_BUTTON event for PyCollapsiblePane. |
OnDrawGTKExpander | Overridable method to draw the GTK-style expander. |
OnDrawGTKStyle | Handles the wx.EVT_PAINT event for PyCollapsiblePane. |
OnDrawGTKText | Overridable method to draw the PyCollapsiblePane text in the expander. |
OnSize | Handles the wx.EVT_SIZE event for PyCollapsiblePane. |
OnStateChange | Handles the status changes (collapsing/expanding). |
SetAGWWindowStyleFlag | Sets the PyCollapsiblePane window style flags. |
SetButton | Assign a new button to PyCollapsiblePane. |
SetButtonFont | Sets the button font. |
SetExpanderDimensions | Sets the expander width and height. |
SetLabel | Sets the button label. |
PyCollapsiblePane is a container with an embedded button-like control which can be used by the user to collapse or expand the pane’s contents.
Default class constructor.
Parameters: |
|
---|
Collapses or expands the pane window.
Parameters: | collapse – True to collapse the pane window, False to expand it. |
---|
Gets the size which best suits the window: for a control, it would be the minimal size which doesn’t truncate the control, for a panel - the same size as it would have after a call to Fit().
Note
Overridden from wx.PyPanel.
Returns the PyCollapsiblePane window style.
See also
SetAGWWindowStyleFlag for a list of possible window style flags.
Returns the PyCollapsiblePane border in pixels (platform dependent).
Returns the button associated with PyCollapsiblePane.
Returns the expander dimensions, a tuple of integers representing the width and height of the expander, in pixels.
Returns a reference to the pane window. Use the returned wx.Window as the parent of widgets to make them part of the collapsible area.
Returns whether a flag is present in the PyCollapsiblePane style.
Parameters: | flag – one of the possible PyCollapsiblePane window styles. |
---|
See also
SetAGWWindowStyleFlag for a list of possible window style flags.
Layout the PyCollapsiblePane.
Handles the wx.EVT_BUTTON event for PyCollapsiblePane.
Parameters: | event – a wx.CommandEvent event to be processed. |
---|
Overridable method to draw the GTK-style expander.
Parameters: | dc – an instance of wx.DC. |
---|
Handles the wx.EVT_PAINT event for PyCollapsiblePane.
Parameters: | event – a wx.PaintEvent event to be processed. |
---|
Note
This is a drawing routine to paint the GTK-style expander.
Overridable method to draw the PyCollapsiblePane text in the expander.
Parameters: | dc – an instance of wx.DC. |
---|
Handles the wx.EVT_SIZE event for PyCollapsiblePane.
Parameters: | event – a wx.SizeEvent event to be processed. |
---|
Handles the status changes (collapsing/expanding).
Parameters: | sz – an instance of wx.Size. |
---|
Sets the PyCollapsiblePane window style flags.
Parameters: | agwStyle – the AGW-specific window style. This can be a combination of the
following bits:
|
---|
Assign a new button to PyCollapsiblePane.
Parameters: | button – can be the standard wx.Button or any of the generic implementations which live in wx.lib.buttons. |
---|
Sets the expander width and height.
Parameters: |
|
---|