colorspace.py 612 Bytes
Newer Older
Eliakin Costa's avatar
Eliakin Costa committed
1 2 3 4 5 6 7 8 9 10
import krita
from colorspace import uicolorspace


class ColorSpaceExtension(krita.Extension):

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

    def setup(self):
11
        action = krita.Krita.instance().createAction("color_space", "Color Space")
Eliakin Costa's avatar
Eliakin Costa committed
12 13 14 15 16 17 18 19 20
        action.setToolTip("Plugin to change color space to selected documents")
        action.triggered.connect(self.initialize)

    def initialize(self):
        self.uicolorspace = uicolorspace.UIColorSpace()
        self.uicolorspace.initialize()


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