documenttools.py 648 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import krita
from documenttools import uidocumenttools


class DocumentToolsExtension(krita.Extension):

    def __init__(self, parent):
        super(DocumentToolsExtension, self).__init__(parent)

    def setup(self):
        action = krita.Krita.instance().createAction("document_tools", "Document Tools")
        action.setToolTip("Plugin to manipulate properties of selected documents")
        action.triggered.connect(self.initialize)

    def initialize(self):
        self.uidocumenttools = uidocumenttools.UIDocumentTools()
        self.uidocumenttools.initialize()


Scripter.addExtension(DocumentToolsExtension(krita.Krita.instance()))