Changeset View
Changeset View
Standalone View
Standalone View
plugins/extensions/pykrita/plugin/plugins/hello/hello.py
Show All 29 Lines | 23 | def __init__(self, parent): | |||
---|---|---|---|---|---|
30 | """ | 30 | """ | ||
31 | super().__init__(parent) | 31 | super().__init__(parent) | ||
32 | 32 | | |||
33 | def setup(self): | 33 | def setup(self): | ||
34 | """ | 34 | """ | ||
35 | This is where most of the setup takes place! | 35 | This is where most of the setup takes place! | ||
36 | """ | 36 | """ | ||
37 | #qDebug("Hello Setup") | 37 | #qDebug("Hello Setup") | ||
38 | action = Krita.instance().createAction("hello_python", "hello") | 38 | action = Krita.instance().createAction("hello_python", "hello", False) | ||
39 | action.triggered.connect(hello) | 39 | action.triggered.connect(hello) | ||
40 | 40 | | |||
41 | 41 | | |||
42 | # Initialize and add the extension | 42 | # Initialize and add the extension | ||
43 | Scripter.addExtension(HelloExtension(Krita.instance())) | 43 | Scripter.addExtension(HelloExtension(Krita.instance())) | ||
44 | 44 | | |||
45 | 45 | | |||
46 | class HelloDocker(DockWidget): | 46 | class HelloDocker(DockWidget): | ||
Show All 29 Lines |