summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/__init__.py
diff options
context:
space:
mode:
authornecoro <>2007-08-04 19:57:47 +0000
committernecoro <>2007-08-04 19:57:47 +0000
commit5eb54636b84f6980ad695748385670f13c6950a9 (patch)
treea959bf43accd8536e411933d49518ac1e20aa6db /portato/gui/gtk/__init__.py
parentff317f147f119b9dfdab01b6645bb51b791b9713 (diff)
downloadportato-5eb54636b84f6980ad695748385670f13c6950a9.tar.gz
portato-5eb54636b84f6980ad695748385670f13c6950a9.tar.bz2
portato-5eb54636b84f6980ad695748385670f13c6950a9.zip
added an uncaught exception dialog
Diffstat (limited to 'portato/gui/gtk/__init__.py')
-rw-r--r--portato/gui/gtk/__init__.py12
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()