diff options
author | Chris Lumens <clumens@redhat.com> | 2007-01-19 20:01:06 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-01-19 20:01:06 +0000 |
commit | f9bac08ebcf5823466db078c776d44d8d4a89cc6 (patch) | |
tree | 5eb809b61608061c2bb72c7464ff6365d59b2ff4 /gui.py | |
parent | 61410793fa85f9b013e1bf86daf06c20ad4651fb (diff) | |
download | anaconda-f9bac08ebcf5823466db078c776d44d8d4a89cc6.tar.gz anaconda-f9bac08ebcf5823466db078c776d44d8d4a89cc6.tar.xz anaconda-f9bac08ebcf5823466db078c776d44d8d4a89cc6.zip |
We don't always have an ICW, like in kickstart installs.
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -824,6 +824,8 @@ class EntryWindow(MessageWindow): class InstallInterface: def __init__ (self): + self.icw = None + # figure out if we want to run interface at 800x600 or 640x480 if gtk.gdk.screen_width() >= 800: self.runres = "800x600" @@ -843,10 +845,16 @@ class InstallInterface: self.ppw = ppw def waitWindow (self, title, text): - return WaitWindow (title, text, self.icw.window) + if self.icw: + return WaitWindow (title, text, self.icw.window) + else: + return WaitWindow (title, text) def progressWindow (self, title, text, total, updpct = 0.05): - return ProgressWindow (title, text, total, updpct, self.icw.window) + if self.icw: + return ProgressWindow (title, text, total, updpct, self.icw.window) + else: + return ProgressWindow (title, text, total, updpct) def packageProgressWindow (self, total, totalSize): self.ppw.setSizes (total, totalSize) @@ -854,8 +862,13 @@ class InstallInterface: def messageWindow(self, title, text, type="ok", default = None, custom_buttons=None, custom_icon=None): + if self.icw: + parent = self.icw.window + else: + parent = None + rc = MessageWindow (title, text, type, default, - custom_buttons, custom_icon, self.icw.window).getrc() + custom_buttons, custom_icon, parent).getrc() return rc def entryWindow(self, title, text, type="ok", entrylength = None): |