wx.richtext.RichTextObjectAddress¶
A class for specifying an object anywhere in an object hierarchy, without using a pointer, necessary since RTC
commands may delete and recreate sub-objects so physical object addresses change.
An array of positions (one per hierarchy level) is used.
See also
Class Hierarchy¶
Methods Summary¶
Creates the address given a container and an object. |
|
Copies the address. |
|
Creates the address given a container and an object. |
|
Returns the array of integers representing the object address. |
|
Returns the object specified by the address, given a top level container. |
|
Sets the address from an array of integers. |
Properties Summary¶
See |
Class API¶
- class wx.richtext.RichTextObjectAddress(object)¶
Possible constructors:
RichTextObjectAddress(topLevelContainer, obj) -> None RichTextObjectAddress() -> None RichTextObjectAddress(address) -> None
A class for specifying an object anywhere in an object hierarchy, without using a pointer, necessary since
RTC
commands may delete and recreate sub-objects so physical object addresses change.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self, topLevelContainer, obj)
Creates the address given a container and an object.
- Parameters:
topLevelContainer (wx.richtext.RichTextParagraphLayoutBox)
- Return type:
None
__init__ (self)
- Return type:
None
__init__ (self, address)
- Parameters:
address (wx.richtext.RichTextObjectAddress)
- Return type:
None
- Copy(self, address)¶
Copies the address.
- Parameters:
address (wx.richtext.RichTextObjectAddress)
- Return type:
None
- Create(self, topLevelContainer, obj)¶
Creates the address given a container and an object.
- Parameters:
topLevelContainer (wx.richtext.RichTextParagraphLayoutBox)
- Return type:
bool
- GetAddress(self)¶
Returns the array of integers representing the object address.
- Return type:
List[int]
- GetObject(self, topLevelContainer)¶
Returns the object specified by the address, given a top level container.
- Parameters:
topLevelContainer (wx.richtext.RichTextParagraphLayoutBox)
- Return type:
- Init(self)¶
- Return type:
None
- SetAddress(self, address)¶
Sets the address from an array of integers.
- Parameters:
address (list of integers)
- Return type:
None
Properties¶
- Address¶
See
GetAddress
andSetAddress