Home | Trees | Index | Help |
|
---|
Package wx :: Class CommandEvent |
|
object
--+ |Object
--+ |Event
--+ | CommandEvent
ChildFocusEvent
,
ContextMenuEvent
,
DateEvent
,
DynamicSashSplitEvent
,
DynamicSashUnifyEvent
,
FindDialogEvent
,
GridEditorCreatedEvent
,
HelpEvent
,
NotifyEvent
,
PyCommandEvent
,
SashEvent
,
ScrollEvent
,
StyledTextEvent
,
TextUrlEvent
,
UpdateUIEvent
,
WindowCreateEvent
,
WindowDestroyEvent
Method Summary | |
---|---|
CommandEvent |
This event class contains information about command events, which originate from a variety of simple controls, as well as menus and toolbars. |
__repr__(self)
| |
bool |
This method can be used with checkbox and menu events: for the checkboxes, the method returns true for a selection event and false for a deselection one. |
Event | Clone(self)
|
long |
Returns extra information dependant on the event objects type. |
long |
Returns the integer identifier corresponding to a listbox, choice or radiobox selection (only if the event was a selection, not a deselection), or a boolean value representing the value of a checkbox. |
int |
Returns item index for a listbox or choice selection event (not valid for a deselection). |
String |
Returns item string for a listbox or choice selection event (not valid for a deselection). |
bool |
This method can be used with checkbox and menu events: for the checkboxes, the method returns true for a selection event and false for a deselection one. |
bool |
For a listbox or similar event, returns true if it is a selection, false if it is a deselection. |
SetExtraLong(self,
extraLong)
| |
SetInt(self,
i)
| |
SetString(self,
s)
|
Method Details |
---|
__init__(self,
commandType=wxEVT_NULL,
winid=0)
This event class contains information about command events, which
originate from a variety of simple controls, as well as menus and
toolbars. |
Checked(self)This method can be used with checkbox and menu events: for the checkboxes, the method returns true for a selection event and false for a deselection one. For the menu events, this method indicates if the menu item just has become checked or unchecked (and thus only makes sense for checkable menu items).
|
GetExtraLong(self)Returns extra information dependant on the event objects type. If the event comes from a listbox selection, it is a boolean determining whether the event was a selection (true) or a deselection (false). A listbox deselection only occurs for multiple-selection boxes, and in this case the index and string values are indeterminate and the listbox must be examined by the application.
|
GetInt(self)Returns the integer identifier corresponding to a listbox, choice or radiobox selection (only if the event was a selection, not a deselection), or a boolean value representing the value of a checkbox.
|
GetSelection(self)Returns item index for a listbox or choice selection event (not valid for a deselection).
|
GetString(self)Returns item string for a listbox or choice selection event (not valid for a deselection).
|
IsChecked(self)This method can be used with checkbox and menu events: for the checkboxes, the method returns true for a selection event and false for a deselection one. For the menu events, this method indicates if the menu item just has become checked or unchecked (and thus only makes sense for checkable menu items).
|
IsSelection(self)For a listbox or similar event, returns true if it is a selection, false if it is a deselection.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:23:10 2005 | http://epydoc.sf.net |