diff options
author | Matt Wilson <msw@redhat.com> | 1999-04-29 20:13:43 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-04-29 20:13:43 +0000 |
commit | 869894d51275a3e63bec6f20bc98d7af69ab4807 (patch) | |
tree | b3ce062590bd3dea494dbe565d3b4c3658da2d62 /gui.py | |
parent | a8dda6b7a25fa25185b5a8184305d3472f138d0e (diff) | |
download | anaconda-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-x | gui.py | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -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 = [ |