diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-12-12 00:02:34 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-12-12 00:02:34 +0000 |
commit | 2bde6472c10680c498cd0d050159831b46b269f8 (patch) | |
tree | 76cfbb1c3f3762a626c60c3a19796439b8228b4e /anaconda | |
parent | b20b40bf8e4f010bfdf394f7e24da3b45e49b551 (diff) | |
download | anaconda-2bde6472c10680c498cd0d050159831b46b269f8.tar.gz anaconda-2bde6472c10680c498cd0d050159831b46b269f8.tar.xz anaconda-2bde6472c10680c498cd0d050159831b46b269f8.zip |
fix --xmode
Diffstat (limited to 'anaconda')
-rwxr-xr-x | anaconda | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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: |