from gtk import *
from iw import *
from gui import _
import string
import sys
"""
_("Video Card")
_("Monitor")
_("Video Ram")
_("Horizontal Frequency Range")
_("Vertical Frequency Range")
_("Test failed")
"""
class XCustomWindow (InstallWindow):
def __init__ (self, ics):
InstallWindow.__init__ (self, ics)
self.todo = ics.getToDo ()
ics.setTitle (_("Customize X Configuration"))
ics.setHTML ("<HTML><BODY>This is the configuration customization screen<</BODY></HTML>")
self.ics.setNextEnabled (TRUE)
self.didTest = 0
def getNext (self):
newmodes = {}
for depth in self.toggles.keys ():
newmodes[depth] = []
for (res, button) in self.toggles[depth]:
if button.get_active ():
newmodes[depth].append (res)
for depth in self.toggles.keys ():
newmodes[depth] = []
for (res, button) in self.toggles[depth]:
if button.get_active ():
newmodes[depth].append (res)
def getNext (self):
if not self.__dict__.has_key("monlist"): return None
if self.monlist:
if self.monlist.selection:
row = self.monlist.selection[0]
setting = self.monlist.get_row_data (row)
self.todo.x.setMonitor (setting)
if self.custom.get_active () and not self.skip.get_active ():
return XCustomWindow
if not self.skip.get_active ():
if self.xdm.get_active ():
self.todo.initlevel = 5
else:
self.todo.initlevel = 3
else:
self.todo.initlevel = 3
return None
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)
self.autoBox.pack_start (label, FALSE)