summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-07-17 21:50:46 +0000
committerMike Fulbright <msf@redhat.com>2001-07-17 21:50:46 +0000
commitbe907fddbd62ebedfc42a06421dc3e1817c9ba57 (patch)
tree8b1c57af37469953ca08224784c6cbb385ad2d19 /gui.py
parent54aa7a25b992c9efff506b9a1ec86fb0d151bf52 (diff)
downloadanaconda-be907fddbd62ebedfc42a06421dc3e1817c9ba57.tar.gz
anaconda-be907fddbd62ebedfc42a06421dc3e1817c9ba57.tar.xz
anaconda-be907fddbd62ebedfc42a06421dc3e1817c9ba57.zip
set size of the outer frame window based on X server resolution
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/gui.py b/gui.py
index a468322b7..72cf941af 100755
--- a/gui.py
+++ b/gui.py
@@ -273,9 +273,12 @@ class MessageWindow:
win.keyboard_ungrab()
class InstallInterface:
- def __init__ (self, runres, nofbmode):
- self.runres = runres
- self.nofbmode = nofbmode
+ def __init__ (self):
+ # figure out if we want to run interface at 800x600 or 640x480
+ if screen_width() >= 800:
+ self.runres = "800x600"
+ else:
+ self.runres = "640x480"
def __del__ (self):
pass