Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
660 B
Raw Blame
# SPDX-License-Identifier: CC0-1.0

from krita import Extension
from builtins import i18n
from . import uiexportlayers


class ExportLayersExtension(Extension):

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

    def setup(self):
        pass

    def createActions(self, window):
        action = window.createAction("export_layers", i18n("Export Layers"))
        action.setToolTip(i18n("Plugin to export layers from a document."))
        action.triggered.connect(self.initialize)

    def initialize(self):
        self.uiexportlayers = uiexportlayers.UIExportLayers()
        self.uiexportlayers.initialize()