wx.richtext.RichTextContextMenuPropertiesInfo keeps track of objects that appear in the context menu, whose properties are available to be edited.
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. |
See |
|
See |
|
See |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
wx.richtext.
RichTextContextMenuPropertiesInfo
(object)¶Possible constructors:
RichTextContextMenuPropertiesInfo()
RichTextContextMenuPropertiesInfo keeps track of objects that appear in the context menu, whose properties are available to be edited.
__init__
(self)¶Constructor.
AddItem
(self, label, obj)¶Adds an item.
label (string) –
obj (wx.richtext.RichTextObject) –
bool
AddItems
(self, ctrl, container, obj)¶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, startCmd=ID_RICHTEXT_PROPERTIES1)¶Returns the number of menu items that were added.
menu (wx.Menu) –
startCmd (int) –
int
Clear
(self)¶Clears the items.
GetCount
(self)¶Returns the number of items.
int
GetLabel
(self, n)¶Returns the nth label.
n (int) –
string
GetLabels
(self)¶Returns the array of labels.
list of strings
GetObject
(self, n)¶Returns the nth object.
n (int) –
GetObjects
(self)¶Returns the array of objects.
RichTextObjectPtrArray
Init
(self)¶Initialisation.
Objects
¶See GetObjects
m_labels
¶A public C++ attribute of type list of strings
.
m_objects
¶A public C++ attribute of type RichTextObjectPtrArray
.