__init__(self,
parent,
id=-1,
label=EmptyString,
pos=DefaultPosition,
size=DefaultSize,
style=0,
validator=DefaultValidator,
name=ButtonNameStr)
(Constructor)
Create and show a button. The preferred way to create standard
buttons is to use a standard ID and an empty label. In this case
wxWigets will automatically use a stock label that corresponds to the
ID given. These labels may vary across platforms as the platform
itself will provide the label if possible. In addition, the button
will be decorated with stock icons under GTK+ 2.
The stock IDs and sample labels are
| wx.ID_ABOUT |
'&About' |
| wx.ID_ADD |
'Add' |
| wx.ID_APPLY |
'&Apply' |
| wx.ID_BOLD |
'&Bold' |
| wx.ID_CANCEL |
'&Cancel' |
| wx.ID_CLEAR |
'&Clear' |
| wx.ID_CLOSE |
'&Close' |
| wx.ID_COPY |
'&Copy' |
| wx.ID_CUT |
'Cu&t' |
| wx.ID_DELETE |
'&Delete' |
| wx.ID_EDIT |
'&Edit' |
| wx.ID_FIND |
'&Find' |
| wx.ID_FILE |
'&File' |
| wx.ID_REPLACE |
'Rep&lace' |
| wx.ID_BACKWARD |
'&Back' |
| wx.ID_DOWN |
'&Down' |
| wx.ID_FORWARD |
'&Forward' |
| wx.ID_UP |
'&Up' |
| wx.ID_HELP |
'&Help' |
| wx.ID_HOME |
'&Home' |
| wx.ID_INDENT |
'Indent' |
| wx.ID_INDEX |
'&Index' |
| wx.ID_ITALIC |
'&Italic' |
| wx.ID_JUSTIFY_CENTER |
'Centered' |
| wx.ID_JUSTIFY_FILL |
'Justified' |
| wx.ID_JUSTIFY_LEFT |
'Align Left' |
| wx.ID_JUSTIFY_RIGHT |
'Align Right' |
| wx.ID_NEW |
'&New' |
| wx.ID_NO |
'&No' |
| wx.ID_OK |
'&OK' |
| wx.ID_OPEN |
'&Open' |
| wx.ID_PASTE |
'&Paste' |
| wx.ID_PREFERENCES |
'&Preferences' |
| wx.ID_PRINT |
'&Print' |
| wx.ID_PREVIEW |
'Print previe&w' |
| wx.ID_PROPERTIES |
'&Properties' |
| wx.ID_EXIT |
'&Quit' |
| wx.ID_REDO |
'&Redo' |
| wx.ID_REFRESH |
'Refresh' |
| wx.ID_REMOVE |
'Remove' |
| wx.ID_REVERT_TO_SAVED |
'Revert to Saved' |
| wx.ID_SAVE |
'&Save' |
| wx.ID_SAVEAS |
'Save &As...' |
| wx.ID_SELECTALL |
'Select all' |
| wx.ID_STOP |
'&Stop' |
| wx.ID_UNDELETE |
'Undelete' |
| wx.ID_UNDERLINE |
'&Underline' |
| wx.ID_UNDO |
'&Undo' |
| wx.ID_UNINDENT |
'&Unindent' |
| wx.ID_YES |
'&Yes' |
| wx.ID_ZOOM_100 |
'&Actual Size' |
| wx.ID_ZOOM_FIT |
'Zoom to &Fit' |
| wx.ID_ZOOM_IN |
'Zoom &In' |
| wx.ID_ZOOM_OUT |
'Zoom &Out' |
-
- Parameters:
parent
(type=Window)
id
(type=int)
label
(type=String)
pos
(type=Point)
size
(type=Size)
style
(type=long)
validator
(type=Validator)
name
(type=String)
- Returns:
-
Button
- Overrides:
wx.Control.__init__
|