Krita Source Code Documentation
Loading...
Searching...
No Matches
scripter.ui_scripter.actions.runaction.docwrapper.DocWrapper Class Reference
+ Inheritance diagram for scripter.ui_scripter.actions.runaction.docwrapper.DocWrapper:

Public Member Functions

 __init__ (self, textdocument)
 
 write (self, text, view=None)
 

Public Attributes

 textdocument
 

Detailed Description

Definition at line 12 of file docwrapper.py.

Constructor & Destructor Documentation

◆ __init__()

scripter.ui_scripter.actions.runaction.docwrapper.DocWrapper.__init__ ( self,
textdocument )

Definition at line 14 of file docwrapper.py.

14 def __init__(self, textdocument):
15 self.textdocument = textdocument
16

Member Function Documentation

◆ write()

scripter.ui_scripter.actions.runaction.docwrapper.DocWrapper.write ( self,
text,
view = None )

Definition at line 17 of file docwrapper.py.

17 def write(self, text, view=None):
18 cursor = QTextCursor(self.textdocument)
19 cursor.clearSelection()
20 cursor.movePosition(QTextCursor.MoveOperation.End)
21 cursor.insertText(text)

References scripter.ui_scripter.actions.runaction.docwrapper.DocWrapper.textdocument.

Member Data Documentation

◆ textdocument

scripter.ui_scripter.actions.runaction.docwrapper.DocWrapper.textdocument

Definition at line 15 of file docwrapper.py.


The documentation for this class was generated from the following file: