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/examine.py | |
parent | 7137a328972197cd6d87824f930be0c51b8a7944 (diff) | |
download | anaconda-9189036e60d9e98e88a6453fd259a1d77f177c9d.tar.gz anaconda-9189036e60d9e98e88a6453fd259a1d77f177c9d.tar.xz anaconda-9189036e60d9e98e88a6453fd259a1d77f177c9d.zip |
Initial commit.
Diffstat (limited to 'iw/examine.py')
-rw-r--r-- | iw/examine.py | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/iw/examine.py b/iw/examine.py new file mode 100644 index 000000000..ff7abb4fc --- /dev/null +++ b/iw/examine.py @@ -0,0 +1,52 @@ +from gtk import * +from iw import * + +class UpgradeExamineWindow (InstallWindow): + + def __init__ (self, ics): + InstallWindow.__init__ (self, ics) + + ics.setTitle ("Upgrade Examine") + + def toggled (self, widget, part): + if widget.get_active (): + self.root = part + + def getNext (self): + self.todo.upgradeFindPackages (self.root) + if self.individualPackages.get_active (): + return IndividualPackageSelectionWindow + return None + + def getScreen (self): + threads_leave () + parts = self.todo.upgradeFindRoot () + threads_enter () + + box = GtkHBox (FALSE) + if not parts: + box.pack_start (GtkLabel ("You don't have any Linux partitions.\n You can't upgrade this sytem!"), + FALSE) + return box + + self.ics.setNextEnabled (TRUE) + self.root = parts[0] + group = None + for part in parts: + group = GtkRadioButton (group, part) + group.connect ("toggled", self.toggled, part) + box.pack_start (part, FALSE) + + sw = GtkScrolledWindow () + sw.add_with_viewport (box) + + vbox = GtkVBox (FALSE, 5) + self.individualPackages = GtkCheckButton ("Customized packages to be upgraded") + self.individualPackages.set_active (FALSE) + align = GtkAlignment (0.5, 0.5) + align.add (self.individualPackages) + + vbox.pack_start (sw, TRUE) + vbox.pack_start (align, FALSE) + + return vbox |