summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-12-12 00:02:34 +0000
committerJeremy Katz <katzj@redhat.com>2001-12-12 00:02:34 +0000
commit2bde6472c10680c498cd0d050159831b46b269f8 (patch)
tree76cfbb1c3f3762a626c60c3a19796439b8228b4e /anaconda
parentb20b40bf8e4f010bfdf394f7e24da3b45e49b551 (diff)
downloadanaconda-2bde6472c10680c498cd0d050159831b46b269f8.tar.gz
anaconda-2bde6472c10680c498cd0d050159831b46b269f8.tar.xz
anaconda-2bde6472c10680c498cd0d050159831b46b269f8.zip
fix --xmode
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda14
1 files changed, 7 insertions, 7 deletions
diff --git a/anaconda b/anaconda
index 93d0adea6..4e783781a 100755
--- a/anaconda
+++ b/anaconda
@@ -501,21 +501,21 @@ if (display_mode == 't'):
# we like to have a way to shoot text mode back at a display
if xmode:
os.environ["TERM"] = "xterm"
- from gtk import *
- from gnome.zvt import *
+ import gtk
+ from gnome import zvt
def child_died (widget, *args):
- mainquit()
+ gtk.mainquit()
- win = GtkWindow ()
- zvt = ZvtTerm (80, 24)
+ win = gtk.Window ()
+ zvt = zvt.Term (80, 24)
zvt.connect ("child_died", child_died)
- zvt.set_del_key_swap(TRUE)
+ zvt.set_del_key_swap(gtk.TRUE)
win.add (zvt)
win.show_all ()
child = zvt.forkpty()
if child != 0:
- mainloop()
+ gtk.mainloop()
try:
pid, status = os.waitpid(child, 0)
except OSError: