summaryrefslogtreecommitdiffstats
path: root/pyanaconda/ui/gui/__init__.py
diff options
context:
space:
mode:
authorVratislav Podzimek <vpodzime@redhat.com>2012-07-31 10:56:15 +0200
committerVratislav Podzimek <vpodzime@redhat.com>2012-08-03 14:21:19 +0200
commitcd60af500449fc2e0ca2a413c21a6e8b7d0a74a2 (patch)
tree8f8e64b5e03e804caac805c141b590d580ef1783 /pyanaconda/ui/gui/__init__.py
parent795721473a0ed46e4be5b7e53dc237e24708880c (diff)
downloadanaconda-cd60af500449fc2e0ca2a413c21a6e8b7d0a74a2.tar.gz
anaconda-cd60af500449fc2e0ca2a413c21a6e8b7d0a74a2.tar.xz
anaconda-cd60af500449fc2e0ca2a413c21a6e8b7d0a74a2.zip
Add mainExceptionWindow and saveExceptionWindow methods to the interfaces
python-meh has its own methods, but we have our own exception handling code (inherited from the python-meh's one) that needs access to both python-meh UI and anaconda UI. Hence anaconda's UIs need a mainExceptionWindow and saveExceptionWindow methods calling the python-meh's ones (GUI or TUI).
Diffstat (limited to 'pyanaconda/ui/gui/__init__.py')
-rw-r--r--pyanaconda/ui/gui/__init__.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/pyanaconda/ui/gui/__init__.py b/pyanaconda/ui/gui/__init__.py
index 2f13bedee..5887047db 100644
--- a/pyanaconda/ui/gui/__init__.py
+++ b/pyanaconda/ui/gui/__init__.py
@@ -19,6 +19,7 @@
# Red Hat Author(s): Chris Lumens <clumens@redhat.com>
#
import importlib, inspect, os, sys
+import meh.ui.gui
from pyanaconda.ui import UserInterface
from pyanaconda.ui.gui.utils import enlightbox
@@ -132,6 +133,16 @@ class GraphicalUserInterface(UserInterface):
return bool(rc)
+ def mainExceptionWindow(self, text, exn_file, *args, **kwargs):
+ meh_intf = meh.ui.gui.GraphicalIntf()
+
+ return meh_intf.mainExceptionWindow(text, exn_file)
+
+
+ def saveExceptionWindow(self, account_manager, signature, *args, **kwargs):
+ meh_intf = meh.ui.gui.GraphicalIntf()
+ meh_intf.saveExceptionWindow(account_manager, signature)
+
###
### SIGNAL HANDLING METHODS
###