Changeset View
Changeset View
Standalone View
Standalone View
plugins/python/colorspace/colorspace.py
1 | ''' | 1 | # This script is licensed CC 0 1.0, so that you can learn from it. | ||
---|---|---|---|---|---|
2 | This script is licensed CC 0 1.0, so that you can learn from it. | | |||
3 | 2 | | |||
4 | ------ CC 0 1.0 --------------- | 3 | # ------ CC 0 1.0 --------------- | ||
5 | 4 | | |||
6 | The person who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. | 5 | # The person who associated a work with this deed has dedicated the | ||
6 | # work to the public domain by waiving all of his or her rights to the | ||||
7 | # work worldwide under copyright law, including all related and | ||||
8 | # neighboring rights, to the extent allowed by law. | ||||
7 | 9 | | |||
8 | You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission. | 10 | # You can copy, modify, distribute and perform the work, even for | ||
11 | # commercial purposes, all without asking permission. | ||||
12 | | ||||
13 | # https://creativecommons.org/publicdomain/zero/1.0/legalcode | ||||
9 | 14 | | |||
10 | https://creativecommons.org/publicdomain/zero/1.0/legalcode | | |||
11 | ''' | | |||
12 | import krita | 15 | import krita | ||
13 | from . import uicolorspace | 16 | from . import uicolorspace | ||
14 | 17 | | |||
Context not available. | |||||
23 | 26 | | |||
24 | def createActions(self, window): | 27 | def createActions(self, window): | ||
25 | action = window.createAction("color_space", i18n("Color Space")) | 28 | action = window.createAction("color_space", i18n("Color Space")) | ||
26 | action.setToolTip(i18n("Plugin to change color space of selected documents.")) | 29 | action.setToolTip( | ||
30 | i18n("Plugin to change color space of selected documents.")) | ||||
27 | action.triggered.connect(self.initialize) | 31 | action.triggered.connect(self.initialize) | ||
28 | 32 | | |||
29 | def initialize(self): | 33 | def initialize(self): | ||
30 | self.uicolorspace = uicolorspace.UIColorSpace() | 34 | self.uicolorspace = uicolorspace.UIColorSpace() | ||
31 | self.uicolorspace.initialize() | 35 | self.uicolorspace.initialize() | ||
32 | | ||||
33 | | ||||
34 | Scripter.addExtension(ColorSpaceExtension(krita.Krita.instance())) | | |||
Context not available. |