File indexing completed on 2024-12-22 04:16:25
0001 # SPDX-License-Identifier: CC0-1.0 0002 0003 import krita 0004 from . import uicolorspace 0005 0006 0007 class ColorSpaceExtension(krita.Extension): 0008 0009 def __init__(self, parent): 0010 super(ColorSpaceExtension, self).__init__(parent) 0011 0012 def setup(self): 0013 pass 0014 0015 def createActions(self, window): 0016 action = window.createAction("color_space", i18n("Color Space")) 0017 action.setToolTip( 0018 i18n("Plugin to change color space of selected documents.")) 0019 action.triggered.connect(self.initialize) 0020 0021 def initialize(self): 0022 self.uicolorspace = uicolorspace.UIColorSpace() 0023 self.uicolorspace.initialize()