Krita Source Code Documentation
Loading...
Searching...
No Matches
docwrapper.py
Go to the documentation of this file.
1
"""
2
SPDX-FileCopyrightText: 2017 Eliakin Costa <eliakim170@gmail.com>
3
4
SPDX-License-Identifier: GPL-2.0-or-later
5
"""
6
try
:
7
from
PyQt6.QtGui
import
QTextCursor
8
except
:
9
from
PyQt5.QtGui
import
QTextCursor
10
11
12
class
DocWrapper
(object):
13
14
def
__init__
(self, textdocument):
15
self.
textdocument
= textdocument
16
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)
scripter.ui_scripter.actions.runaction.docwrapper.DocWrapper
Definition
docwrapper.py:12
scripter.ui_scripter.actions.runaction.docwrapper.DocWrapper.__init__
__init__(self, textdocument)
Definition
docwrapper.py:14
scripter.ui_scripter.actions.runaction.docwrapper.DocWrapper.write
write(self, text, view=None)
Definition
docwrapper.py:17
scripter.ui_scripter.actions.runaction.docwrapper.DocWrapper.textdocument
textdocument
Definition
docwrapper.py:15
QtGui
QtGui
plugins
python
scripter
ui_scripter
actions
runaction
docwrapper.py
Generated at
2026-01-15 02:30:07+01:00
from
Krita
branch
master
, commit
38b517ca06286bb65279453cbf9a2b4fbd1153d1