summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-31 16:04:09 +0000
committerMatt Wilson <msw@redhat.com>1999-08-31 16:04:09 +0000
commit2ef0cb0ae32e9dddf0241e4d8d08a5db516a218f (patch)
tree0dfb3e396e72cd7158f36518a4c315825dfd9984 /iw
parentc497625d4fc06cb2226468c696200d0d74a988aa (diff)
downloadanaconda-2ef0cb0ae32e9dddf0241e4d8d08a5db516a218f.tar.gz
anaconda-2ef0cb0ae32e9dddf0241e4d8d08a5db516a218f.tar.xz
anaconda-2ef0cb0ae32e9dddf0241e4d8d08a5db516a218f.zip
xconfig
Diffstat (limited to 'iw')
-rw-r--r--iw/xconfig.py57
1 files changed, 57 insertions, 0 deletions
diff --git a/iw/xconfig.py b/iw/xconfig.py
new file mode 100644
index 000000000..ce308e35a
--- /dev/null
+++ b/iw/xconfig.py
@@ -0,0 +1,57 @@
+from gtk import *
+from iw import *
+from gui import _
+
+import string
+import sys
+
+class XConfigWindow (InstallWindow):
+ def __init__ (self, ics):
+ InstallWindow.__init__ (self, ics)
+
+ self.todo = ics.getToDo ()
+ ics.setTitle (_("X Configuration"))
+ ics.setNextEnabled (1)
+ ics.setHTML ("<HTML><BODY>This is the X configuration screen<</BODY></HTML>")
+
+ def getScreen (self):
+ self.todo.x.probe ()
+
+ box = GtkVBox (FALSE, 50)
+ box.set_border_width (5)
+
+ label = GtkLabel (_("In most cases your video hardware can "
+ "be probed to automatically determine the "
+ "best settings for your display."))
+ label.set_justify (JUSTIFY_LEFT)
+ label.set_line_wrap (TRUE)
+ label.set_alignment (0.0, 0.5)
+ box.pack_start (label, FALSE)
+
+ label = GtkLabel (_("Autoprobe results:"))
+ label.set_alignment (0.0, 0.5)
+ box.pack_start (label, FALSE)
+
+ report = self.todo.x.probeReport ()
+ report = string.replace (report, '\t', ' ')
+
+ result = GtkLabel (report)
+ result.set_alignment (0.2, 0.5)
+ result.set_justify (JUSTIFY_LEFT)
+ box.pack_start (result, FALSE)
+
+ test = GtkAlignment ()
+ test.set (0.5, 0.5, 0.0, 0.0)
+ button = GtkButton (_("Test this configuration"))
+ test.add (button)
+
+ custom = GtkCheckButton (_("Customize X Configuration"))
+
+ box.pack_start (test, FALSE)
+ box.pack_start (custom, FALSE)
+
+ top = GtkAlignment ()
+ top.set (0.5, 0.5, 1.0, 0.0)
+ top.add (box)
+
+ return top