Contains common classes and functions
Bases: wx._core.Menu
AddPendingEvent(self, Event event)
AppendCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem
AppendItem(self, MenuItem item) -> MenuItem
AppendMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem
AppendRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem
AppendSeparator(self) -> MenuItem
AppendSubMenu(self, Menu submenu, String text, String help=EmptyString) -> MenuItem
Attach(self, wxMenuBarBase menubar)
Bind an event to an event handler.
Parameters: |
|
---|
Break(self)
Check(self, int id, bool check)
See GetClassName
Connect(self, int id, int lastId, int eventType, PyObject func)
Delete(self, int id) -> bool
DeleteItem(self, MenuItem item) -> bool
Destroy(self)
Deletes the C++ object this Python object is a proxy for.
DestroyId(self, int id) -> bool
DestroyItem(self, MenuItem item) -> bool
Detach(self)
Enable(self, int id, bool enable)
See GetEventHandler and SetEventHandler
See GetEvtHandlerEnabled and SetEvtHandlerEnabled
FindItem(self, String item) -> int
FindItemById(self, int id) -> MenuItem
FindItemByPosition(self, size_t position) -> MenuItem
GetClassName(self) -> String
Returns the class name of the C++ class using wxRTTI.
GetEventHandler(self) -> EvtHandler
GetEvtHandlerEnabled(self) -> bool
GetHelpString(self, int id) -> String
GetInvokingWindow(self) -> Window
GetLabel(self, int id) -> String
GetLabelText(self, int itemid) -> String
GetMenuBar(self) -> MenuBar
GetMenuItemCount(self) -> size_t
GetMenuItems(self) -> MenuItemList
GetNextHandler(self) -> EvtHandler
GetParent(self) -> Menu
GetPreviousHandler(self) -> EvtHandler
GetStyle(self) -> long
GetTitle(self) -> String
See GetHelpString and SetHelpString
InsertCheckItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem
InsertItem(self, size_t pos, MenuItem item) -> MenuItem
InsertMenu(self, size_t pos, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem
InsertRadioItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem
InsertSeparator(self, size_t pos) -> MenuItem
See GetInvokingWindow and SetInvokingWindow
IsAttached(self) -> bool
IsChecked(self, int id) -> bool
IsEnabled(self, int id) -> bool
IsSameAs(self, Object p) -> bool
For wx.Objects that use C++ reference counting internally, this method can be used to determine if two objects are referencing the same data object.
See GetMenuBar
See GetMenuItemCount
See GetMenuItems
See GetNextHandler and SetNextHandler
See GetParent and SetParent
PrependCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem
PrependItem(self, MenuItem item) -> MenuItem
PrependMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem
PrependRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem
PrependSeparator(self) -> MenuItem
See GetPreviousHandler and SetPreviousHandler
ProcessEvent(self, Event event) -> bool
ProcessPendingEvents(self)
Remove(self, int id) -> MenuItem
RemoveItem(self, MenuItem item) -> MenuItem
SetEventHandler(self, EvtHandler handler)
SetEvtHandlerEnabled(self, bool enabled)
SetHelpString(self, int id, String helpString)
SetInvokingWindow(self, Window win)
SetLabel(self, int id, String label)
SetNextHandler(self, EvtHandler handler)
SetParent(self, Menu parent)
SetPreviousHandler(self, EvtHandler handler)
SetTitle(self, String title)
See GetStyle
See GetTitle and SetTitle
Disconnects the event handler binding for event from self. Returns True if successful.
UpdateUI(self, EvtHandler source=None)
The membership flag
Parameters: | item – txtcrtl containing a value |
---|
Return a float in a standardized, human-readable formatted string
this method remove the begin and end tags given by the user from the string .
Parameters: |
|
---|---|
Returns: | begin_flag==True if begin was found, end_flag==if end was found else return false, false |
remove “_” in front of a name
returns a list of string without white space of separator
Parameters: | separator – the string to remove |
---|
return a list of string without white space of separator
Parameters: | separator – the string to remove |
---|