Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Module buttonpanel :: Class ButtonInfo |
|
object
--+ |Object
--+ |EvtHandler
--+ |Control
--+ | ButtonInfo
Method Summary | |
---|---|
Default class constructor. | |
Add a programmer-defined status in addition to the 5 default status: - Normal; - Disabled; - Hover; - Pressed; - Toggled. | |
Checks whether a ButtonPanel repaint is needed or not. | |
Draws the button on ButtonPanel. | |
Enable(self,
enable)
| |
Returns the best size for the button. | |
Returns the associated bitmap. | |
Returns the button id. | |
Returns the button type (standard or toggle). | |
Returns the help string shown in the statusbar. | |
Returns the button rect. | |
Returns the help string shown in a tootip. | |
Returns the button status. | |
Returns the text associated to the button. | |
Returns the text alignment in the button (bottom or right). | |
Returns whether a wx.ITEM_CHECK button is toggled or not. | |
Returns whether the button has text or not. | |
IsEnabled(self)
| |
Sets the associated bitmap. | |
Sets the button id. | |
Sets the button type (standard or toggle). | |
Sets the help string to be shown in the statusbar. | |
Sets the button rect. | |
Sets the help string to be shown in a tootip. | |
Sets the button status. | |
Sets the text of the button. | |
Sets the text alignment in the button (bottom or right). | |
Sets a wx.ITEM_CHECK button toggled/not toggled. |
Property Summary | |
---|---|
Bitmap | |
Id | |
Rect | |
Status |
Method Details |
---|
__init__(self,
parent,
id=-1,
bmp=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap ...,
status='Normal',
text='',
kind=0,
shortHelp='',
longHelp='')
|
AddStatus(self, name='Custom', bmp=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap ...)Add a programmer-defined status in addition to the 5 default status: - Normal; - Disabled; - Hover; - Pressed; - Toggled. |
CheckRefresh(self, status)Checks whether a ButtonPanel repaint is needed or not. Convenience function. |
Draw(self, dc, rect)Draws the button on ButtonPanel. Actually the drawing is done in BPArt.
|
GetBestSize(self)Returns the best size for the button.
|
GetBitmap(self, status=None)Returns the associated bitmap. |
GetId(self)Returns the button id.
|
GetKind(self)Returns the button type (standard or toggle). |
GetLongHelp(self)Returns the help string shown in the statusbar. |
GetRect(self)Returns the button rect. |
GetShortHelp(self)Returns the help string shown in a tootip. |
GetStatus(self)Returns the button status. |
GetText(self)Returns the text associated to the button. |
GetTextAlignment(self)Returns the text alignment in the button (bottom or right). |
GetToggled(self)Returns whether a wx.ITEM_CHECK button is toggled or not. |
HasText(self)Returns whether the button has text or not. |
SetBitmap(self, bmp, status='Normal')Sets the associated bitmap. |
SetId(self, id)Sets the button id. |
SetKind(self, kind=0)Sets the button type (standard or toggle). |
SetLongHelp(self, help='')Sets the help string to be shown in the statusbar. |
SetRect(self, rect)Sets the button rect. |
SetShortHelp(self, help='')Sets the help string to be shown in a tootip. |
SetStatus(self, status)Sets the button status. |
SetText(self, text='')Sets the text of the button. |
SetTextAlignment(self, alignment)Sets the text alignment in the button (bottom or right). |
SetToggled(self, toggle=True)Sets a wx.ITEM_CHECK button toggled/not toggled. |
Property Details |
---|
Bitmap |
Id |
Rect |
Status |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:10:32 2007 | http://epydoc.sf.net |