Home | Trees | Index | Help |
|
---|
Package wx :: Class MenuEvent |
|
object
--+ |Object
--+ |Event
--+ | MenuEvent
This class is used for a variety of menu-related events. Note that
these do not include menu command events, which are handled by sending
wx.CommandEvent
objects.
The default handler for wx.EVT_MENU_HIGHLIGHT displays menu item help text in the first field of the status bar.
wx.EVT_MENU_OPEN A menu is about to be opened. On Windows, this is only sent once for each navigation of the menubar (up until all menus have closed). wx.EVT_MENU_CLOSE A menu has been just closed. wx.EVT_MENU_HIGHLIGHT Sent when the menu item with the specified id has been highlighted: used by default to show help prompts in the wx.Frame
's status bar.wx.EVT_MENU_HIGHLIGHT_ALL Can be used to catch the menu highlight event for all menu items.
Method Summary | |
---|---|
MenuEvent |
Constructor |
__repr__(self)
| |
Menu |
Returns the menu which is being opened or closed. |
int |
Returns the menu identifier associated with the event. |
bool |
Returns True if the menu which is being opened or closed is a popup menu, False if it is a normal one. |
Inherited from Event | |
| |
Event |
|
Object |
Returns the object (usually a window) associated with the event, if any. |
wxEventType |
Returns the identifier of the given event type, such as wxEVT_COMMAND_BUTTON_CLICKED. |
int |
Returns the identifier associated with this event, such as a button command id. |
bool |
Returns true if the event handler should be skipped, false otherwise. |
long |
|
bool |
Returns true if the event is or is derived from wx.CommandEvent else
it returns false. |
Resume the event propagation by restoring the propagation level. | |
Sets the originating object, or in other words, obj is normally the object that is sending the event. | |
Sets the specific type of the event. | |
Set's the ID for the event. | |
| |
bool |
Test if this event should be propagated to the parent window or not, i.e. |
Called by an event handler, it controls whether additional event handlers bound to this event will be called after the current event handler returns. | |
int |
Stop the event from propagating to its parent window. |
Inherited from Object | |
Deletes the C++ object this Python object is a proxy for. | |
String |
Returns the class name of the C++ class using wxRTTI. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Method Details |
---|
__init__(self,
type=wxEVT_NULL,
winid=0,
menu=None)
|
GetMenu(self)Returns the menu which is being opened or closed. This method should only be used with the OPEN and CLOSE events.
|
GetMenuId(self)Returns the menu identifier associated with the event. This method should be only used with the HIGHLIGHT events.
|
IsPopup(self)Returns True if the menu which is being opened or closed is a popup menu, False if it is a normal one. This method should only be used with the OPEN and CLOSE events.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:45:28 2007 | http://epydoc.sf.net |