wx.richtext.RichTextBox¶
This class implements a floating or inline text box, containing paragraphs.
See also
wx.richtext.RichTextParagraphLayoutBox, wx.richtext.RichTextObject, wx.richtext.RichTextBuffer, wx.richtext.RichTextCtrl
Class Hierarchy¶
Known Subclasses¶
wx.richtext.RichTextCell, wx.richtext.RichTextTable
Methods Summary¶
Default constructor; optionally pass the parent object. |
|
Returns |
|
Clones the object. |
|
Draw the item, within the given range. |
|
Edits the object’s properties via a GUI. |
|
Returns the label to be used for the properties context menu item. |
|
Returns the |
Properties Summary¶
See |
Class API¶
- class wx.richtext.RichTextBox(RichTextParagraphLayoutBox)¶
Possible constructors:
RichTextBox(parent=None) -> None RichTextBox(obj) -> None
This class implements a floating or inline text box, containing paragraphs.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self, parent=None)
Default constructor; optionally pass the parent object.
- Parameters:
parent (wx.richtext.RichTextObject)
- Return type:
None
__init__ (self, obj)
Copy constructor.
- Parameters:
obj (wx.richtext.RichTextBox)
- Return type:
None
- CanEditProperties(self)¶
Returns
True
if we can edit the object’s properties via a GUI.- Return type:
bool
- Clone(self)¶
Clones the object.
- Return type:
- Copy(self, obj)¶
- Parameters:
obj (wx.richtext.RichTextBox)
- Return type:
None
- Draw(self, dc, context, range, selection, rect, descent, style)¶
Draw the item, within the given range.
Some objects may ignore the range (for example paragraphs) while others must obey it (lines, to implement wrapping)
- Parameters:
dc (wx.DC)
context (wx.richtext.RichTextDrawingContext)
range (wx.richtext.RichTextRange)
selection (wx.richtext.RichTextSelection)
rect (wx.Rect)
descent (int)
style (int)
- Return type:
bool
- EditProperties(self, parent, buffer)¶
Edits the object’s properties via a GUI.
- Parameters:
parent (wx.Window)
buffer (wx.richtext.RichTextBuffer)
- Return type:
bool
- GetPropertiesMenuLabel(self)¶
Returns the label to be used for the properties context menu item.
- Return type:
str
- GetXMLNodeName(self)¶
Returns the
XML
node name of this object.This must be overridden for XmlNode-base
XML
export to work.- Return type:
str
Properties¶
- PropertiesMenuLabel¶
- XMLNodeName¶
See
GetXMLNodeName