wx.lib.agw.buttonpanel.ButtonPanelText¶
This class is used to hold data about the main caption in ButtonPanel
.
Class Hierarchy¶
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¶
- class ButtonPanelText(Control)¶
This class is used to hold data about the main caption in
ButtonPanel
.
Methods¶
- __init__(self, parent, text='')¶
Default class constructor.
- Parameters:
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
.- Returns:
An instance of
wx.Size
.
- GetText(self)¶
Returns the caption text.
- Returns:
A string representing the caption text.
- SetText(self, text='')¶
Sets the caption text.
- Parameters:
text (string) – the main caption string.