diff options
author | David Cantrell <dcantrell@redhat.com> | 2006-02-13 21:12:25 +0000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2006-02-13 21:12:25 +0000 |
commit | 89dd38c788247f5647fac05f49bfd65dac3eb249 (patch) | |
tree | d254f9b3697d28ca5a2f45999424aa692ab756eb /gui.py | |
parent | b356d624015299769b222aa57e5a2a04fee3ede1 (diff) | |
download | anaconda-89dd38c788247f5647fac05f49bfd65dac3eb249.tar.gz anaconda-89dd38c788247f5647fac05f49bfd65dac3eb249.tar.xz anaconda-89dd38c788247f5647fac05f49bfd65dac3eb249.zip |
I think I dained my bramage.
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 67 |
1 files changed, 30 insertions, 37 deletions
@@ -55,35 +55,35 @@ StayOnScreen = "stayOnScreen" mainWindow = None stepToClass = { - "language" : ("language_gui", "LanguageWindow", True), - "keyboard" : ("keyboard_gui", "KeyboardWindow", True), - "mouse" : ("mouse_gui", "MouseWindow", True), - "welcome" : ("welcome_gui", "WelcomeWindow", True), - "installtype" : ("installpath_gui", "InstallPathWindow", True), - "iscsi" : ("iscsi_gui", "iscsiWindow", True), - "zfcpconfig" : ("zfcp_gui", "ZFCPWindow", True), - "partitionmethod" : ("partmethod_gui", "PartitionMethodWindow", True), - "partition" : ("partition_gui", "PartitionWindow", True), - "parttype" : ("autopart_type", "PartitionTypeWindow", True), - "findinstall" : ("examine_gui", "UpgradeExamineWindow", True), - "addswap" : ("upgrade_swap_gui", "UpgradeSwapWindow", True), - "upgrademigratefs" : ("upgrade_migratefs_gui", "UpgradeMigrateFSWindow", True), - "bootloader": ("bootloader_main_gui", "MainBootloaderWindow", True), - "bootloaderadvanced": ("bootloader_advanced_gui", "AdvancedBootloaderWindow", True), - "upgbootloader": ("upgrade_bootloader_gui", "UpgradeBootloaderWindow", True), - "network" : ("network_gui", "NetworkWindow", True), - "timezone" : ("timezone_gui", "TimezoneWindow", True), - "accounts" : ("account_gui", "AccountWindow", True), - "tasksel": ("task_gui", "TaskWindow", True), - "group-selection": ("package_gui", "GroupSelectionWindow", True), - "confirminstall" : ("confirm_gui", "InstallConfirmWindow", True), - "confirmupgrade" : ("confirm_gui", "UpgradeConfirmWindow", True), - "install" : ("progress_gui", "InstallProgressWindow_NEW", False), - "complete" : ("congrats_gui", "CongratulationWindow", True), + "language" : ("language_gui", "LanguageWindow"), + "keyboard" : ("keyboard_gui", "KeyboardWindow"), + "mouse" : ("mouse_gui", "MouseWindow"), + "welcome" : ("welcome_gui", "WelcomeWindow"), + "installtype" : ("installpath_gui", "InstallPathWindow"), + "iscsi" : ("iscsi_gui", "iscsiWindow"), + "zfcpconfig" : ("zfcp_gui", "ZFCPWindow"), + "partitionmethod" : ("partmethod_gui", "PartitionMethodWindow"), + "partition" : ("partition_gui", "PartitionWindow"), + "parttype" : ("autopart_type", "PartitionTypeWindow"), + "findinstall" : ("examine_gui", "UpgradeExamineWindow"), + "addswap" : ("upgrade_swap_gui", "UpgradeSwapWindow"), + "upgrademigratefs" : ("upgrade_migratefs_gui", "UpgradeMigrateFSWindow"), + "bootloader": ("bootloader_main_gui", "MainBootloaderWindow"), + "bootloaderadvanced": ("bootloader_advanced_gui", "AdvancedBootloaderWindow"), + "upgbootloader": ("upgrade_bootloader_gui", "UpgradeBootloaderWindow"), + "network" : ("network_gui", "NetworkWindow"), + "timezone" : ("timezone_gui", "TimezoneWindow"), + "accounts" : ("account_gui", "AccountWindow"), + "tasksel": ("task_gui", "TaskWindow"), + "group-selection": ("package_gui", "GroupSelectionWindow"), + "confirminstall" : ("confirm_gui", "InstallConfirmWindow"), + "confirmupgrade" : ("confirm_gui", "UpgradeConfirmWindow"), + "install" : ("progress_gui", "InstallProgressWindow_NEW"), + "complete" : ("congrats_gui", "CongratulationWindow"), } if iutil.getArch() == 's390': - stepToClass["bootloader"] = ("zipl_gui", "ZiplWindow", True) + stepToClass["bootloader"] = ("zipl_gui", "ZiplWindow") # # Stuff for screenshots @@ -941,16 +941,9 @@ class InstallControlWindow: except StayOnScreen: return - (step, args) = self.dispatch.currentStep() - if stepToClass[step]: - (file, className, nextGrab) = stepToClass[step] - else: - nextGrab = True - - if nextGrab: - ics = InstallControlState(self) - ics.setGrabNext(True) - self.update(ics) + ics = InstallControlState(self) + ics.setGrabNext(True) + self.update(ics) self.dispatch.gotoNext() self.dir = 1 @@ -1277,7 +1270,7 @@ class InstallControlWindow: else: return self.prevClicked() - (file, className, nextGrab) = stepToClass[step] + (file, className) = stepToClass[step] newScreenClass = None s = "from %s import %s; newScreenClass = %s" % (file, className, className) |