summaryrefslogtreecommitdiffstats
path: root/iw/fdisk_gui.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-11-30 18:59:06 +0000
committerMatt Wilson <msw@redhat.com>2001-11-30 18:59:06 +0000
commit223d7fe26bb2af45275c7f40b0c83656a698d059 (patch)
tree6df77c59d3b44a576a0b7008aab312242b3658ff /iw/fdisk_gui.py
parent01cf2462b604d22b3c3444aed87f76525ae5f56d (diff)
downloadanaconda-223d7fe26bb2af45275c7f40b0c83656a698d059.tar.gz
anaconda-223d7fe26bb2af45275c7f40b0c83656a698d059.tar.xz
anaconda-223d7fe26bb2af45275c7f40b0c83656a698d059.zip
zvt is back, see new packages
Diffstat (limited to 'iw/fdisk_gui.py')
-rw-r--r--iw/fdisk_gui.py47
1 files changed, 22 insertions, 25 deletions
diff --git a/iw/fdisk_gui.py b/iw/fdisk_gui.py
index d8eadf6db..bfbd4877b 100644
--- a/iw/fdisk_gui.py
+++ b/iw/fdisk_gui.py
@@ -13,7 +13,7 @@
import gtk
from iw_gui import *
-#from gnome.zvt import *
+from gnome import zvt
from translate import _
from dispatch import DISPATCH_NOOP
import partitioning
@@ -52,34 +52,31 @@ class FDiskWindow (InstallWindow):
def button_clicked (self, widget, drive):
- self.intf.messageWindow("zvt no workie", "zvt2 no workie yet, so no fdisk yet")
- # XXX zvt doesn't work with gnome-python2 yet
-## zvt = ZvtTerm (80, 24)
-## zvt.set_del_key_swap(TRUE)
-## zvt.connect ("child_died", self.child_died, widget)
-## self.drive = drive
-
-## # free our fd's to the hard drive -- we have to
-## # fstab.rescanDrives() after this or bad things happen!
-## if os.access("/sbin/fdisk", os.X_OK):
-## path = "/sbin/fdisk"
-## else:
-## path = "/usr/sbin/fdisk"
+ term = zvt.Term(80, 24)
+ term.set_del_key_swap(gtk.TRUE)
+ term.connect("child_died", self.child_died, widget)
+ self.drive = drive
+
+ # free our fd's to the hard drive -- we have to
+ # fstab.rescanDrives() after this or bad things happen!
+ if os.access("/sbin/fdisk", os.X_OK):
+ path = "/sbin/fdisk"
+ else:
+ path = "/usr/sbin/fdisk"
-## isys.makeDevInode(drive, '/tmp/' + drive)
+ isys.makeDevInode(drive, '/tmp/' + drive)
-## if zvt.forkpty() == 0:
-## env = os.environ
-## os.execve (path, (path, '/tmp/' + drive), env)
-## zvt.show ()
+ if term.forkpty() == 0:
+ env = os.environ
+ os.execve (path, (path, '/tmp/' + drive), env)
+ term.show()
-## self.windowContainer.remove (self.buttonBox)
-## self.windowContainer.pack_start (zvt)
-
-## self.ics.readHTML ("fdiskpart")
-## self.ics.setPrevEnabled (0)
-## self.ics.setNextEnabled (0)
+ self.windowContainer.remove(self.buttonBox)
+ self.windowContainer.pack_start(term)
+ self.ics.readHTML("fdiskpart")
+ self.ics.setPrevEnabled(0)
+ self.ics.setNextEnabled(0)
# FDiskWindow tag="fdisk"
def getScreen (self, diskset, partrequests, intf):