diff options
Diffstat (limited to 'portato/gui/gtk/__init__.py')
-rw-r--r-- | portato/gui/gtk/__init__.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/portato/gui/gtk/__init__.py b/portato/gui/gtk/__init__.py index 17d6299..22e5f76 100644 --- a/portato/gui/gtk/__init__.py +++ b/portato/gui/gtk/__init__.py @@ -14,14 +14,20 @@ import gtk from portato import plugin from portato.backend import system from windows import MainWindow, SearchWindow, EbuildWindow +from uncaughtException import register_ex_handler def run (): - m = MainWindow() - m.main() + try: + m = MainWindow() + register_ex_handler() + m.main() + except KeyboardInterrupt: + pass def show_ebuild (pkg): plugin.load_plugins("gtk") - + register_ex_handler() + def _show (pkg): gtk.main_quit() |