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. Use the returned Window as |
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 EVT_BUTTON event for PyCollapsiblePane. |
OnDrawGTKExpander | Overridable method to draw the GTK-style expander. |
OnDrawGTKStyle | Handles the EVT_PAINT event for PyCollapsiblePane. |
OnDrawGTKText | Overridable method to draw the PyCollapsiblePane text in the expander. |
OnSize | Handles the 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 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 label.
Returns the button associated with PyCollapsiblePane.
Returns the button font.
Returns the expander dimensions, a tuple of integers representing the width and height of the expander, in pixels.
Returns the button label.
Note
Overridden from PyPanel.
Returns a reference to the pane window. Use the returned 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.
Returns True if the pane window is currently hidden.
Returns True if the pane window is currently shown.
Layout the PyCollapsiblePane.
Handles the EVT_BUTTON event for PyCollapsiblePane.
Parameters: | event – a CommandEvent event to be processed. |
---|
Overridable method to draw the GTK-style expander.
Parameters: | dc – an instance of DC. |
---|
Handles the EVT_PAINT event for PyCollapsiblePane.
Parameters: | event – a 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 DC. |
---|
Handles the EVT_SIZE event for PyCollapsiblePane.
Parameters: | event – a SizeEvent event to be processed. |
---|
Handles the status changes (collapsing/expanding).
Parameters: | sz – an instance of 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 Button or any of the generic implementations which live in lib.buttons. |
---|
Sets the expander width and height.
Parameters: |
|
---|
Sets the button label.
Parameters: | label – the new button label. |
---|
Note
Overridden from PyPanel.