Commits

Ronny Pfannschmidt committed 3a5543f

automated action rewrite of pida-plugins/python/python.py
actionsconfig: 110 126
actions:
execute_python on_python_execute h
methods:
def create_actions(self):
def on_python_execute(self, action): -> execute_python

Comments (0)

Files changed (1)

pida-plugins/python/python.py

 
 class PythonActionsConfig(ActionsConfig):
 
-    def create_actions(self):
-        self.create_action(
-            'execute_python',
-            gtk.Action,
+
+    actions = [
+        gtk.Action('execute_python',
             _('Execute Python Module'),
             _('Execute the current Python module in a shell'),
-            gtk.STOCK_EXECUTE,
-            self.on_python_execute,
-        )
+            gtk.STOCK_EXECUTE),
+    ]
 
-    def on_python_execute(self, action):
+    def on_execute_python(self, action):
         self.svc.execute_current_document()