summaryrefslogtreecommitdiffstats
path: root/iw/partmethod_gui.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-06-25 19:07:54 +0000
committerMike Fulbright <msf@redhat.com>2001-06-25 19:07:54 +0000
commit656359e03d1c836ba1232b91f8b521f2f5623100 (patch)
treeb76ec2f91bf4df8e3bf61f6b25444c50afa422a4 /iw/partmethod_gui.py
parent17ca1c75dc2e7f76555ee49329bdf50d95c100a7 (diff)
downloadanaconda-656359e03d1c836ba1232b91f8b521f2f5623100.tar.gz
anaconda-656359e03d1c836ba1232b91f8b521f2f5623100.tar.xz
anaconda-656359e03d1c836ba1232b91f8b521f2f5623100.zip
add partition method to GUI, rework to use skiplist
Diffstat (limited to 'iw/partmethod_gui.py')
-rw-r--r--iw/partmethod_gui.py54
1 files changed, 47 insertions, 7 deletions
diff --git a/iw/partmethod_gui.py b/iw/partmethod_gui.py
index 4c3a753d4..83733a939 100644
--- a/iw/partmethod_gui.py
+++ b/iw/partmethod_gui.py
@@ -23,24 +23,64 @@ class PartitionMethodWindow(InstallWindow):
ics.setTitle (_("Automatic Partitioning"))
def getNext(self):
+
if self.useFdisk.get_active():
- self.dispatch.skipStep("fdisk", skip = 0)
- else:
- self.dispatch.skipStep("fdisk")
+ self.id.useAutopartitioning = 0
+ self.id.useFdisk = 1
+ elif self.useAuto.get_active():
+ self.id.useAutopartitioning = 1
+ self.id.useFdisk = 0
+ else:
+ self.id.useAutopartitioning = 0
+ self.id.useFdisk = 0
+
return None
- def getScreen (self, dispatch):
- self.dispatch = dispatch
+ def getScreen (self, id):
+
+ # XXX Change to not use id in (use more specific components of id)
+ self.id = id
box = GtkVBox (FALSE)
box.set_border_width (5)
+ label = GtkLabel(
+ _("Autopartitioning sets up your partitioning in a reasonable "
+ "way depending on your installation type and then gives you a "
+ "chance to customize this setup.\n"
+ "\n"
+ "Disk Shaman is a tool designed for partitioning and setting "
+ "up mount points. It is designed to be easier to use than "
+ "Linux's traditional disk partitioning software, fdisk, as "
+ "well as more powerful. However, there are some cases where "
+ "fdisk may be preferred.\n"
+ "\n"
+ "Which tool would you like to use?"))
+
+ label.set_line_wrap(1)
+ label.set_alignment(0.0, 0.0)
+ label.set_usize(400, -1)
+
+ box.pack_start(label)
+
radioBox = GtkVBox (FALSE)
+ self.useAuto = GtkRadioButton(
+ None, _("Have the installer autopartition for you"))
+ radioBox.pack_start(self.useAuto, FALSE)
+ self.useDS = GtkRadioButton(
+ self.useAuto, _("Manually partition with Disk Shaman"))
+ radioBox.pack_start(self.useDS, FALSE)
self.useFdisk = GtkRadioButton(
- None, _("Manually partition with fdisk [experts only]"))
+ self.useAuto, _("Manually partition with fdisk [experts only]"))
radioBox.pack_start(self.useFdisk, FALSE)
- self.useFdisk.set_active (not dispatch.stepInSkipList("fdisk"))
+
+ if id.useAutopartitioning:
+ self.useAuto.set_active(1)
+ elif id.useFdisk:
+ self.useFdisk.set_active(1)
+ else:
+ self.useDS.set_active(1)
align = GtkAlignment()
align.add(radioBox)