diff options
author | pnfisher <pnfisher> | 1999-08-23 03:35:25 +0000 |
---|---|---|
committer | pnfisher <pnfisher> | 1999-08-23 03:35:25 +0000 |
commit | 9189036e60d9e98e88a6453fd259a1d77f177c9d (patch) | |
tree | 0a4b0fa0662d6949d3d033c1228f21d4adf104d2 /iw/installpath.py | |
parent | 7137a328972197cd6d87824f930be0c51b8a7944 (diff) | |
download | anaconda-9189036e60d9e98e88a6453fd259a1d77f177c9d.tar.gz anaconda-9189036e60d9e98e88a6453fd259a1d77f177c9d.tar.xz anaconda-9189036e60d9e98e88a6453fd259a1d77f177c9d.zip |
Initial commit.
Diffstat (limited to 'iw/installpath.py')
-rw-r--r-- | iw/installpath.py | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/iw/installpath.py b/iw/installpath.py new file mode 100644 index 000000000..1d3e57fe5 --- /dev/null +++ b/iw/installpath.py @@ -0,0 +1,60 @@ +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 rootpartition import * +from auth import * +from mouse import * +from keyboard import * +from format import * +from congrats import * +from autopartition import * +from installtype import * +from dependencies import * +from lilo import * +from examine import * + +UPGRADE = 0 +INSTALL = 1 + +class InstallPathWindow (InstallWindow): + + def __init__ (self, ics): + InstallWindow.__init__ (self, ics) + + ics.setTitle ("Install Path") + ics.setNextEnabled (1) + + self.commonSteps = [LanguageWindow, KeyboardWindow, + WelcomeWindow, InstallPathWindow] + + self.installSteps = [NetworkWindow, PartitionWindow, FormatWindow, PackageSelectionWindow, + UnresolvedDependenciesWindow, LiloWindow, AuthWindow, AccountWindow, + InstallProgressWindow, CongratulationWindow] + + self.upgradeSteps = [UpgradeExamineWindow, + UnresolvedDependenciesWindow, InstallProgressWindow, + CongratulationWindow] + + def toggled (self, widget, type): + if not widget.get_active (): return + if type == INSTALL: + self.ics.getICW ().setStateList (self.commonSteps + self.installSteps, len (self.commonSteps)-1) + else: + self.ics.getICW ().setStateList (self.commonSteps + self.upgradeSteps, len (self.commonSteps)-1) + + def getScreen (self): + box = GtkVBox (FALSE, 5) + group = GtkRadioButton (None, "Install") + group.connect ("toggled", self.toggled, INSTALL) + self.toggled (group, INSTALL) + box.pack_start (group, FALSE) + group = GtkRadioButton (group, "Upgrade") + group.connect ("toggled", self.toggled, UPGRADE) + box.pack_start (group, FALSE) + + return box |