summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-04-29 20:13:43 +0000
committerMatt Wilson <msw@redhat.com>1999-04-29 20:13:43 +0000
commit869894d51275a3e63bec6f20bc98d7af69ab4807 (patch)
treeb3ce062590bd3dea494dbe565d3b4c3658da2d62 /gui.py
parenta8dda6b7a25fa25185b5a8184305d3472f138d0e (diff)
downloadanaconda-869894d51275a3e63bec6f20bc98d7af69ab4807.tar.gz
anaconda-869894d51275a3e63bec6f20bc98d7af69ab4807.tar.xz
anaconda-869894d51275a3e63bec6f20bc98d7af69ab4807.zip
added popup window method for the gui frontend
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py22
1 files changed, 19 insertions, 3 deletions
diff --git a/gui.py b/gui.py
index c51d4a830..48419b62f 100755
--- a/gui.py
+++ b/gui.py
@@ -50,7 +50,7 @@ class WelcomeWindow:
window.add(hbox)
window.set_position(WIN_POS_CENTER)
- window.set_default_size(640, 480)
+# window.set_default_size(640, 480)
window.show_all()
mainloop()
window.destroy()
@@ -119,14 +119,30 @@ class PartitionWindow:
window.add(vbox)
window.set_position(WIN_POS_CENTER)
- window.set_default_size(640, 480)
+# window.set_default_size(640, 480)
window.show_all()
mainloop()
window.destroy()
return self.rc
class InstallInterface:
- def run(self):
+ def waitWindow(self, title, text):
+ window = GtkWindow()
+ window.set_border_width(10)
+ window.set_title(title)
+ window.set_position(WIN_POS_CENTER)
+ label = GtkLabel(text)
+ label.set_line_wrap (TRUE)
+ window.add(label)
+ window.show_all()
+ while events_pending():
+ mainiteration(TRUE)
+ return window
+
+ def popWaitWindow(self, window):
+ window.destroy()
+
+ def run(self, hdlist):
rc_parse("gtkrc")
steps = [