commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 86/101: grc: gtk3: Renamed the ActionHandle


From: git
Subject: [Commit-gnuradio] [gnuradio] 86/101: grc: gtk3: Renamed the ActionHandler to Application
Date: Thu, 16 Mar 2017 14:58:12 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch python3
in repository gnuradio.

commit c7ea78c37db2d36ace3051ce10bc94fe71501819
Author: Seth Hitefield <address@hidden>
Date:   Thu Aug 11 14:30:33 2016 -0400

    grc: gtk3: Renamed the ActionHandler to Application
---
 grc/gui/{ActionHandler.py => Application.py} | 4 ++--
 grc/gui/Dialogs.py                           | 2 +-
 grc/gui/Executor.py                          | 3 ---
 grc/main.py                                  | 6 +++---
 4 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/grc/gui/ActionHandler.py b/grc/gui/Application.py
similarity index 99%
rename from grc/gui/ActionHandler.py
rename to grc/gui/Application.py
index 7898146..c68b38b 100644
--- a/grc/gui/ActionHandler.py
+++ b/grc/gui/Application.py
@@ -33,7 +33,7 @@ from .PropsDialog import PropsDialog
 from ..core import ParseXML, Messages
 
 
-class ActionHandler(Gtk.Application):
+class Application(Gtk.Application):
     """
     The action handler will setup all the major window components,
     and handle button presses and flow graph operations from the GUI.
@@ -42,7 +42,7 @@ class ActionHandler(Gtk.Application):
     def __init__(self, file_paths, platform):
         Gtk.Application.__init__(self)
         """
-        ActionHandler constructor.
+        Application 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.
 
diff --git a/grc/gui/Dialogs.py b/grc/gui/Dialogs.py
index da4b11a..0eb8895 100644
--- a/grc/gui/Dialogs.py
+++ b/grc/gui/Dialogs.py
@@ -124,7 +124,7 @@ class TextDisplay(SimpleTextDisplay):
             logfile.write(buf.get_text(buf.get_start_iter(),
                                        buf.get_end_iter(), True))
 
-    # Action functions are set by the ActionHandler's init function
+    # Action functions are set by the Application's init function
     def clear_cb(self, menu_item, web_view):
         """ Callback function to clear the text buffer """
         Actions.CLEAR_CONSOLE()
diff --git a/grc/gui/Executor.py b/grc/gui/Executor.py
index a8c6798..7168c9e 100644
--- a/grc/gui/Executor.py
+++ b/grc/gui/Executor.py
@@ -35,9 +35,6 @@ class ExecFlowGraphThread(threading.Thread):
     def __init__(self, flow_graph_page, xterm_executable, callback):
         """
         ExecFlowGraphThread constructor.
-
-        Args:
-            action_handler: an instance of an ActionHandler
         """
         threading.Thread.__init__(self)
 
diff --git a/grc/main.py b/grc/main.py
index e4d2cef..e0f2b26 100755
--- a/grc/main.py
+++ b/grc/main.py
@@ -24,7 +24,7 @@ from gi.repository import Gtk
 
 from gnuradio import gr
 from .gui.Platform import Platform
-from .gui.ActionHandler import ActionHandler
+from .gui.Application import Application
 
 
 VERSION_AND_DISCLAIMER_TEMPLATE = """\
@@ -53,6 +53,6 @@ def main():
         prefs=gr.prefs(),
         install_prefix=gr.prefix()
     )
-    
-    app = ActionHandler(args.flow_graphs, platform)
+
+    app = Application(args.flow_graphs, platform)
     sys.exit(app.run())



reply via email to

[Prev in Thread] Current Thread [Next in Thread]