Changeset View
Changeset View
Standalone View
Standalone View
plugins/python/scripter/scripter.py
Context not available. | |||||
15 | along with this program; if not, write to the Free Software | 15 | along with this program; if not, write to the Free Software | ||
---|---|---|---|---|---|
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
17 | """ | 17 | """ | ||
18 | from PyQt5.QtWidgets import QDialog | | |||
19 | from PyQt5.QtCore import QSettings, QStandardPaths | 18 | from PyQt5.QtCore import QSettings, QStandardPaths | ||
20 | from krita import * | 19 | from krita import Krita, Extension | ||
21 | from scripter import uicontroller, documentcontroller, debugcontroller | 20 | from . import uicontroller, documentcontroller, debugcontroller | ||
22 | 21 | | |||
23 | 22 | | |||
24 | class ScripterExtension(Extension): | 23 | class ScripterExtension(Extension): | ||
25 | 24 | | |||
26 | def __init__(self, parent): | 25 | def __init__(self, parent): | ||
27 | super().__init__(parent) | 26 | super(ScripterExtension, self).__init__(parent) | ||
28 | 27 | | |||
29 | def setup(self): | 28 | def setup(self): | ||
30 | pass | 29 | pass | ||
31 | 30 | | |||
32 | def createActions(self, window): | 31 | def createActions(self, window): | ||
33 | action = window.createAction("python_scripter", "Scripter") | 32 | action = window.createAction("python_scripter", "Scripter") | ||
34 | action.triggered.connect(self.initialize) | 33 | action.triggered.connect(self.initialize) | ||
Context not available. |