Internal class which holds information about a menu.
__init__ |
Default class constructor. |
GetCmdId |
Returns the associated menu accelerator identifier. |
GetMenu |
Returns the associated menu. |
GetRect |
Returns the associated menu client rectangle. |
GetSelectedTextBitmap |
Returns the associated selected menu bitmap. |
GetState |
Returns the associated menu state. |
GetTextBitmap |
Returns the associated menu bitmap. |
GetTitle |
Returns the associated menu title. |
SetRect |
Sets the associated menu client rectangle. |
SetSelectedTextBitmap |
Sets the associated selected menu bitmap. |
SetState |
Sets the associated menu state. |
SetTextBitmap |
Sets the associated menu bitmap. |
MenuEntryInfo
(object)¶Internal class which holds information about a menu.
__init__
(self, titleOrMenu="", menu=None, state=ControlNormal, cmd=wx.ID_ANY)¶Default class constructor.
Used internally. Do not call it in your code!
Parameters: |
|
---|
GetCmdId
(self)¶Returns the associated menu accelerator identifier.
GetMenu
(self)¶Returns the associated menu.
GetRect
(self)¶Returns the associated menu client rectangle.
GetSelectedTextBitmap
(self)¶Returns the associated selected menu bitmap.
GetState
(self)¶Returns the associated menu state.
See also
SetState
for a list of valid menu states.
GetTextBitmap
(self)¶Returns the associated menu bitmap.
GetTitle
(self)¶Returns the associated menu title.
SetRect
(self, rect)¶Sets the associated menu client rectangle.
Parameters: | rect – an instance of wx.Rect , representing the menu client rectangle. |
---|
SetSelectedTextBitmap
(self, bmp)¶Sets the associated selected menu bitmap.
Parameters: | bmp – a valid wx.Bitmap object. |
---|
SetState
(self, state)¶Sets the associated menu state.
Parameters: | state (integer) – the menu item state. This can be one of the following:
|
---|