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
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52