AGW Logo

agw_title GTKExpander

A GTKExpander allows the user to hide or show its child by clicking on an expander triangle.

hierarchy Inheritance Diagram

Inheritance diagram for: GTKExpander

Inheritance diagram of GTKExpander


method_summary Methods Summary

__init__Default class constructor.
DoGetBestSizeGets the size which best suits the window: for a control, it would be the
OnDrawGTKExpanderDraws the GTKExpander triangle.
OnDrawGTKTextDraws the GTKExpander text label.
OnSizeHandles the wx.EVT_SIZE event for GTKExpander.

API Class API

class GTKExpander(wx.PyControl)[source]

A GTKExpander allows the user to hide or show its child by clicking on an expander triangle.



__init__(parent, id=wx.ID_ANY, label="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.NO_BORDER)[source]

Default class constructor.

Parameters:
  • parent – the GTKExpander parent. Must not be None;
  • id – window identifier. A value of -1 indicates a default value;
  • label – the expander text label;
  • pos – the control position. A value of (-1, -1) indicates a default position, chosen by either the windowing system or wxPython, depending on platform;
  • size – the control size. A value of (-1, -1) indicates a default size, chosen by either the windowing system or wxPython, depending on platform;
  • style – the expander style.


DoGetBestSize()[source]

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.PyControl.



OnDrawGTKExpander(dc)[source]

Draws the GTKExpander triangle.

Parameters:dc – an instance of wx.DC.


OnDrawGTKText(dc)[source]

Draws the GTKExpander text label.

Parameters:dc – an instance of wx.DC.



OnSize(event)[source]

Handles the wx.EVT_SIZE event for GTKExpander.

Parameters:event – a wx.SizeEvent event to be processed.
Tree

Table Of Contents

Previous topic

pycollapsiblepane

Next topic

PyCollapsiblePane