Commits

Ronny Pfannschmidt committed 8b4577f

automated action rewrite of pida-plugins/regextoolkit/regextoolkit.py
actionsconfig: 165 184
actions:
show_regextoolkit on_show_regextoolkit
methods:
def create_actions(self):
def on_show_regextoolkit(self, action):

Comments (0)

Files changed (1)

pida-plugins/regextoolkit/regextoolkit.py

 
 class RegextoolkitActions(ActionsConfig):
 
-    def create_actions(self):
-        self.create_action(
-            'show_regextoolkit',
-            PidaRememberToggle,
+
+    actions = [
+        PidaRememberToggle('show_regextoolkit',
             _('RegexToolkit'),
             _('Show regextoolkit'),
-            '',
-            self.on_show_regextoolkit,
-            '',
-        )
+            ''),
+    ]
+
+    accels = {
+        'show_regextoolkit': '',
+    }
 
     def on_show_regextoolkit(self, action):
         if action.get_active():