summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-03 20:18:13 +0000
committerMatt Wilson <msw@redhat.com>2000-07-03 20:18:13 +0000
commit76e27eadd0837f271d212858ca426bc2d88bbcc6 (patch)
treea60e5e65f797ee616798a567b5e91da621350b96 /gui.py
parent7d508f91f670cd671cae2071b6ca76b731a68bf0 (diff)
downloadanaconda-76e27eadd0837f271d212858ca426bc2d88bbcc6.tar.gz
anaconda-76e27eadd0837f271d212858ca426bc2d88bbcc6.tar.xz
anaconda-76e27eadd0837f271d212858ca426bc2d88bbcc6.zip
1) save the local variables on the innermost frame. 2) implement dump window on gui
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py19
1 files changed, 17 insertions, 2 deletions
diff --git a/gui.py b/gui.py
index 88cedf669..9ea9e8841 100755
--- a/gui.py
+++ b/gui.py
@@ -122,6 +122,7 @@ class ProgressWindow:
def ExceptionWindow(text):
win = GnomeDialog ("Exception Occured")
win.append_button ("Debug")
+ win.append_button ("Save to floppy")
win.append_button_with_pixmap ("OK", STOCK_BUTTON_OK)
textbox = GtkText()
textbox.insert_defaults (text)
@@ -151,6 +152,7 @@ def ExceptionWindow(text):
win.set_position (WIN_POS_CENTER)
win.show_all ()
rc = win.run ()
+ threads_leave()
# I did it this way for future expantion
# 0 is debug
if rc == 0:
@@ -161,8 +163,11 @@ def ExceptionWindow(text):
except SystemError:
pass
return 1
- # 1 is OK
- elif rc == 1:
+ # 1 is save
+ if rc == 1:
+ return 2
+ # 2 is OK
+ elif rc == 2:
return 0
class MessageWindow:
@@ -242,6 +247,16 @@ class InstallInterface:
print text
return ExceptionWindow (text)
+ def dumpWindow(self):
+ window = MessageWindow("Save Crash Dump",
+ _("Please insert a floppy now. All "
+ "contents of the disk "
+ "will be erased, so please "
+ "choose your diskette carefully."),
+ "okcancel")
+ rc = window.getrc()
+ return rc
+
def getBootdisk ():
return None