wx.richtext.RichTextContextMenuPropertiesInfo¶wx.richtext.RichTextContextMenuPropertiesInfo keeps track of objects that appear in the context menu, whose properties are available to be edited.
Class Hierarchy¶
Inheritance diagram for class RichTextContextMenuPropertiesInfo:

Methods Summary¶Constructor. |
|
Adds an item. |
|
Adds appropriate menu items for the current container and clicked on object (and container’s parent, if appropriate). |
|
Returns the number of menu items that were added. |
|
Clears the items. |
|
Returns the number of items. |
|
Returns the nth label. |
|
Returns the array of labels. |
|
Returns the nth object. |
|
Returns the array of objects. |
|
Initialisation. |
Properties Summary¶See |
|
See |
|
See |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
Class API¶wx.richtext.RichTextContextMenuPropertiesInfo(object)¶Possible constructors:
RichTextContextMenuPropertiesInfo() -> None
RichTextContextMenuPropertiesInfo keeps track of objects that appear in the context menu, whose properties are available to be edited.
__init__(self)¶Constructor.
None
AddItem(self, label : str, obj : RichTextObject)¶Adds an item.
label (string) –
obj (wx.richtext.RichTextObject) –
bool
AddItems(self, ctrl : RichTextCtrl, container : RichTextObject, obj : RichTextObject)¶Adds appropriate menu items for the current container and clicked on object (and container’s parent, if appropriate).
ctrl (wx.richtext.RichTextCtrl) –
container (wx.richtext.RichTextObject) –
obj (wx.richtext.RichTextObject) –
int
AddMenuItems(self, menu : Menu, startCmd: int=ID_RICHTEXT_PROPERTIES1)¶Returns the number of menu items that were added.
menu (wx.Menu) –
startCmd (int) –
int
Clear(self)¶Clears the items.
None
GetCount(self)¶Returns the number of items.
int
GetLabel(self, n : int)¶Returns the nth label.
n (int) –
str
GetLabels(self)¶Returns the array of labels.
List[str]
GetObject(self, n : int)¶Returns the nth object.
n (int) –
GetObjects(self)¶Returns the array of objects.
RichTextObjectPtrArray
Init(self)¶Initialisation.
None
Objects¶See GetObjects
m_labels¶A public C++ attribute of type list of strings.
m_objects¶A public C++ attribute of type RichTextObjectPtrArray.