Home | Trees | Index | Help |
|
---|
Package wx :: Class BitmapButton |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |Control
--+ |Button
--+ | BitmapButton
ColourSelect
,
ContextHelpButton
,
FoldOutMenu
A Button that contains a bitmap. A bitmap button can be supplied with a single bitmap, and wxWidgets will draw all button states using this bitmap. If the application needs more control, additional bitmaps for the selected state, unpressed focused state, and greyed-out state may be supplied.
wx.BU_AUTODRAW If this is specified, the button will be drawn automatically using the label bitmap only, providing a 3D-look border. If this style is not specified, the button will be drawn without borders and using all provided bitmaps. WIN32 only. wx.BU_LEFT Left-justifies the label. WIN32 only. wx.BU_TOP Aligns the label to the top of the button. WIN32 only. wx.BU_RIGHT Right-justifies the bitmap label. WIN32 only. wx.BU_BOTTOM Aligns the label to the bottom of the button. WIN32 only. wx.BU_EXACTFIT Creates the button as small as possible instead of making it of the standard size (which is the default behaviour.)
EVT_BUTTON Sent when the button is clicked.
See Also: wx.Button
, wx.Bitmap
Method Summary | |
---|---|
BitmapButton |
Create and show a button with a bitmap for the label. |
__repr__(self)
| |
bool |
Acutally create the GUI BitmapButton for 2-phase creation. |
Bitmap |
Returns the bitmap for the disabled state. |
Bitmap |
Returns the bitmap for the focused state. |
Bitmap |
Returns the label bitmap (the one passed to the constructor). |
Bitmap |
Returns the bitmap for the selected state. |
int | GetMarginX(self)
|
int | GetMarginY(self)
|
Sets the bitmap for the disabled button appearance. | |
Sets the bitmap for the button appearance when it has the keyboard focus. | |
Sets the bitmap label for the button. | |
Sets the bitmap for the selected (depressed) button appearance. | |
SetMargins(self,
x,
y)
|
Instance Method Details |
---|
__init__(self,
parent,
id=-1,
bitmap=wxNullBitmap,
pos=DefaultPosition,
size=DefaultSize,
style=BU_AUTODRAW,
validator=DefaultValidator,
name=ButtonNameStr)
Create and show a button with a bitmap for the label. |
Create(self, parent, id=-1, bitmap=wxNullBitmap, pos=DefaultPosition, size=DefaultSize, style=BU_AUTODRAW, validator=DefaultValidator, name=ButtonNameStr)Acutally create the GUI BitmapButton for 2-phase creation.
|
GetBitmapDisabled(self)Returns the bitmap for the disabled state.
|
GetBitmapFocus(self)Returns the bitmap for the focused state.
|
GetBitmapLabel(self)Returns the label bitmap (the one passed to the constructor).
|
GetBitmapSelected(self)Returns the bitmap for the selected state.
|
SetBitmapDisabled(self, bitmap)Sets the bitmap for the disabled button appearance.
|
SetBitmapFocus(self, bitmap)Sets the bitmap for the button appearance when it has the keyboard focus.
|
SetBitmapLabel(self, bitmap)Sets the bitmap label for the button. This is the bitmap used for the unselected state, and for all other states if no other bitmaps are provided.
|
SetBitmapSelected(self, bitmap)Sets the bitmap for the selected (depressed) button appearance.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:24:08 2005 | http://epydoc.sf.net |