> + if flags.livecdInstall: > + stdoutLog.warning(complain) > + recommendation = _("Try the text mode installer by running:\n\n" > + "'/usr/bin/liveinst -T'\n\n from a root " > + "terminal.") > + title = _("Not enough RAM") > + text = "%s %s" %(complain, recommendation) > + text_arg = "--text=\"%s\"" % text > + title_arg = "--title=\"%s\"" % title > + import shlex > + argv = ['--error'] + shlex.split(text_arg) + shlex.split(title_arg) > + iutil.execWithRedirect('zenity', argv) > + sys.exit(1) > + else: > + resolution = _("Starting text mode.") > + stdoutLog.warning("%s %s" % (complain, resolution)) > + anaconda.displayMode = 't' > + time.sleep(2) I think you're on the right track here, but do you really need to use an external program to accomplish this? Couldn't you do something like: import gtk win = gtk.MessageDialog(whatever, ...) win.show_all() I don't know that it's any different or really saves any lines, but it seems nicer to me. - Chris _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list