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¶
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¶
- class 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.
Methods¶
- __init__(self)¶
Constructor.
- Return type:
None
- AddItem(self, label, obj)¶
Adds an item.
- Parameters:
label (string)
- Return type:
bool
- AddItems(self, ctrl, container, obj)¶
Adds appropriate menu items for the current container and clicked on object (and container’s parent, if appropriate).
- Parameters:
ctrl (wx.richtext.RichTextCtrl)
container (wx.richtext.RichTextObject)
- Return type:
int
- AddMenuItems(self, menu, startCmd=ID_RICHTEXT_PROPERTIES1)¶
Returns the number of menu items that were added.
- Parameters:
menu (wx.Menu)
startCmd (int)
- Return type:
int
- Clear(self)¶
Clears the items.
- Return type:
None
- GetCount(self)¶
Returns the number of items.
- Return type:
int
- GetLabel(self, n)¶
Returns the nth label.
- Parameters:
n (int)
- Return type:
str
- GetLabels(self)¶
Returns the array of labels.
- Return type:
List[str]
- GetObject(self, n)¶
Returns the nth object.
- Parameters:
n (int)
- Return type:
- GetObjects(self)¶
Returns the array of objects.
- Return type:
RichTextObjectPtrArray
- Init(self)¶
Initialisation.
- Return type:
None
Properties¶
- Objects¶
See
GetObjects
- m_labels¶
A public C++ attribute of type
list of strings
.
- m_objects¶
A public C++ attribute of type
RichTextObjectPtrArray
.