from gtk import *
from iw import *
from language import *
from welcome import *
from progress import *
from package import *
from network import *
from account import *
from auth import *
from mouse import *
from keyboard import *
from format import *
from congrats import *
from dependencies import *
from lilo import *
from silo import *
from examine import *
from bootdisk import *
from timezone import *
from xconfig import *
from fdisk import *
from rootpartition import *
from confirm import *
import iutil
from gui import _
import installclass
def getNext(self):
if not self.__dict__.has_key("upgradeButton"):
return
icw = self.ics.getICW ()
if self.upgradeButton.get_active():
self.todo.upgrade = 1
icw.setStateList (self.commonSteps +
self.upgradeSteps, len (self.commonSteps)-1)
else:
icw.setStateList (self.commonSteps +
self.installSteps, len (self.commonSteps)-1)
self.todo.upgrade = 0
for (button, type) in self.installClasses:
if button.get_active():
break
if type == WORKSTATION_GNOME and self.orig != WORKSTATION_GNOME:
self.todo.setClass (installclass.GNOMEWorkstation ())
elif type == WORKSTATION_KDE and self.orig != WORKSTATION_KDE:
self.todo.setClass (installclass.KDEWorkstation ())
elif type == SERVER and self.orig != SERVER:
print "SERVER"
self.todo.setClass (installclass.Server ())
elif type == CUSTOM and self.orig != CUSTOM:
self.todo.setClass (installclass.CustomInstall ())
def toggled (self, widget, type):
if not widget.get_active (): return
if type == INSTALL:
self.installBox.set_sensitive(1)
elif type == UPGRADE:
self.installBox.set_sensitive(0)