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
wx.richtext.RichTextCell, wx.richtext.RichTextTable
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 |
See |
wx.richtext.
RichTextBox
(RichTextParagraphLayoutBox)¶Possible constructors:
RichTextBox(parent: Optional[RichTextObject]=None) -> None
RichTextBox(obj : RichTextBox) -> None
This class implements a floating or inline text box, containing paragraphs.
__init__
(self, *args, **kw)¶__init__ (self, parent: Optional[RichTextObject]=None)
Default constructor; optionally pass the parent object.
parent (wx.richtext.RichTextObject) –
None
__init__ (self, obj : RichTextBox)
Copy constructor.
obj (wx.richtext.RichTextBox) –
None
CanEditProperties
(self)¶Returns True
if we can edit the object’s properties via a GUI.
bool
Clone
(self)¶Clones the object.
Copy
(self, obj : RichTextBox)¶obj (wx.richtext.RichTextBox) –
None
Draw
(self, dc : DC, context : RichTextDrawingContext, range : RichTextRange, selection : RichTextSelection, rect : Rect, descent : int, style : int)¶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)
dc (wx.DC) –
context (wx.richtext.RichTextDrawingContext) –
range (wx.richtext.RichTextRange) –
selection (wx.richtext.RichTextSelection) –
rect (wx.Rect) –
descent (int) –
style (int) –
bool
EditProperties
(self, parent : Window, buffer : RichTextBuffer)¶Edits the object’s properties via a GUI.
parent (wx.Window) –
buffer (wx.richtext.RichTextBuffer) –
bool
GetPropertiesMenuLabel
(self)¶Returns the label to be used for the properties context menu item.
str
GetXMLNodeName
(self)¶Returns the XML
node name of this object.
This must be overridden for XmlNode-base XML
export to work.
str
PropertiesMenuLabel
¶XMLNodeName
¶See GetXMLNodeName