diff options
author | Seth Hitefield <sdhitefield@gmail.com> | 2016-08-09 18:48:31 -0400 |
---|---|---|
committer | Seth Hitefield <sdhitefield@gmail.com> | 2016-09-22 12:05:42 -0400 |
commit | 8b2f679202c95896647231820eb07f42a2bc204b (patch) | |
tree | d00cda213070b9c4566207edc9fa91caaccde7e0 /grc/main.py | |
parent | 577cd09c42a02c7824bbd6f6c3a76c53dc114658 (diff) |
grc: gtk3: Converted to Gtk.Application (ActionHandler) and Gtk.ApplicationWindow (MainWindow)
Diffstat (limited to 'grc/main.py')
-rwxr-xr-x | grc/main.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/grc/main.py b/grc/main.py index 40a61a299f..e4d2cef234 100755 --- a/grc/main.py +++ b/grc/main.py @@ -15,16 +15,14 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA -import argparse +import argparse, sys import gi gi.require_version('Gtk', '3.0') gi.require_version('PangoCairo', '1.0') - from gi.repository import Gtk from gnuradio import gr - from .gui.Platform import Platform from .gui.ActionHandler import ActionHandler @@ -55,6 +53,6 @@ def main(): prefs=gr.prefs(), install_prefix=gr.prefix() ) - ActionHandler(args.flow_graphs, platform) - Gtk.main() - + + app = ActionHandler(args.flow_graphs, platform) + sys.exit(app.run()) |