Skip to content

Commit

Permalink
changed the extension template
Browse files Browse the repository at this point in the history
  • Loading branch information
cg-cnu committed Apr 24, 2018
1 parent e622277 commit e387f65
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions templates/extension.py
@@ -1,5 +1,6 @@
from krita import Extension

MENU_NAME = '${orig_plugin_name}'
EXTENSION_ID = 'pykrita_${plugin_name}'
MENU_ENTRY = '${menu_entry}'

Expand All @@ -9,8 +10,10 @@ def __init__(self, parent):
super().__init__(parent)

def setup(self):
app = Krita.instance()
action = app.createAction(EXTENSION_ID, MENU_ENTRY)
pass

def createActions(self, window):
action = window.createAction(EXTENSION_ID, MENU_NAME, MENU_ENTRY)
action.triggered.connect(self.action_triggered)

def action_triggered(self):
Expand Down

0 comments on commit e387f65

Please sign in to comment.