summaryrefslogtreecommitdiff
path: root/grc/gui/ActionHandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/gui/ActionHandler.py')
-rw-r--r--grc/gui/ActionHandler.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index 476c82b4f6..bb687529f2 100644
--- a/grc/gui/ActionHandler.py
+++ b/grc/gui/ActionHandler.py
@@ -47,8 +47,10 @@ class ActionHandler:
ActionHandler constructor.
Create the main window, setup the message handler, import the preferences,
and connect all of the action handlers. Finally, enter the gtk main loop and block.
- @param file_paths a list of flow graph file passed from command line
- @param platform platform module
+
+ Args:
+ file_paths: a list of flow graph file passed from command line
+ platform: platform module
"""
self.clipboard = None
for action in Actions.get_all_actions(): action.connect('activate', self._handle_action)
@@ -76,7 +78,9 @@ class ActionHandler:
* some keys are ignored by the accelerators like the direction keys,
* some keys are not registered to any accelerators but are still used.
When not in focus, gtk and the accelerators handle the the key press.
- @return false to let gtk handle the key action
+
+ Returns:
+ false to let gtk handle the key action
"""
if not self.get_focus_flag(): return False
return Actions.handle_key_press(event)
@@ -86,7 +90,9 @@ class ActionHandler:
Handle the delete event from the main window.
Generated by pressing X to close, alt+f4, or right click+close.
This method in turns calls the state handler to quit.
- @return true
+
+ Returns:
+ true
"""
Actions.APPLICATION_QUIT()
return True
@@ -350,7 +356,9 @@ class ExecFlowGraphThread(Thread):
def __init__ (self, action_handler):
"""
ExecFlowGraphThread constructor.
- @param action_handler an instance of an ActionHandler
+
+ Args:
+ action_handler: an instance of an ActionHandler
"""
Thread.__init__(self)
self.update_exec_stop = action_handler.update_exec_stop