
wx.lib.agw.buttonpanel.ButtonPanelText¶This class is used to hold data about the main caption in ButtonPanel.
Class Hierarchy¶
Inheritance diagram for class ButtonPanelText:

Known Superclasses¶wx.lib.agw.buttonpanel.Control
Methods Summary¶Default class constructor. |
|
Convenience function to create a |
|
Draws the main caption. Actually the drawing is done in |
|
Returns the best size for the main caption in |
|
Returns the caption text. |
|
Sets the caption text. |
Class API¶ButtonPanelText(Control)¶This class is used to hold data about the main caption in ButtonPanel.
__init__(self, parent, text="")¶Default class constructor.
parent – the text parent object, an instance of ButtonPanel;
text (string) – the actual main caption string.
GetBestSize(self)¶Returns the best size for the main caption in ButtonPanel.
An instance of wx.Size.
GetText(self)¶Returns the caption text.
A string representing the caption text.
SetText(self, text="")¶Sets the caption text.
text (string) – the main caption string.