A generic bitmap button.
wx.lib.buttons.GenBitmapTextButton
, wx.lib.buttons.GenBitmapToggleButton
, wx.lib.buttons.ThemedGenBitmapButton
, wx.lib.colourselect.ColourSelect
__init__ |
Default class constructor. |
DrawLabel |
|
GetBitmapDisabled |
Returns the bitmap for the button’s disabled state, which may be invalid. |
GetBitmapFocus |
Returns the bitmap for the button’s focused state, which may be invalid. |
GetBitmapLabel |
Returns the bitmap for the button’s normal state. |
GetBitmapSelected |
Returns the bitmap for the button’s pressed state, which may be invalid. |
SetBitmapDisabled |
Sets the bitmap for the disabled button appearance. |
SetBitmapFocus |
Sets the bitmap for the focused button appearance. |
SetBitmapLabel |
Set the bitmap to display normally. |
SetBitmapSelected |
Sets the bitmap for the selected (depressed) button appearance. |
A generic bitmap button.
Default class constructor.
Parameters: |
|
---|
See also
wx.Button
for a list of valid window styles.
Returns the bitmap for the button’s disabled state, which may be invalid.
Return type: | wx.Bitmap |
---|
See also
Returns the bitmap for the button’s focused state, which may be invalid.
Return type: | wx.Bitmap |
---|
See also
Returns the bitmap for the button’s normal state.
Return type: | wx.Bitmap |
---|
See also
Returns the bitmap for the button’s pressed state, which may be invalid.
Return type: | wx.Bitmap |
---|
See also
Sets the bitmap for the disabled button appearance.
Parameters: | bitmap (wx.Bitmap) – the bitmap for the disabled button appearance. |
---|
Sets the bitmap for the focused button appearance.
Parameters: | bitmap (wx.Bitmap) – the bitmap for the focused button appearance. |
---|
Set the bitmap to display normally. This is the only one that is required.
If createOthers is True
, then the other bitmaps will be generated
on the fly. Currently, only the disabled bitmap is generated.
Parameters: | bitmap (wx.Bitmap) – the bitmap for the normal button appearance. |
---|
Note
This is the bitmap used for the unselected state, and for all other states if no other bitmaps are provided.
Sets the bitmap for the selected (depressed) button appearance.
Parameters: | bitmap (wx.Bitmap) – the bitmap for the selected (depressed) button appearance. |
---|