Re: adding python popup in %pre of kickstart to get user input

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2003-09-23 at 16:55, sjsmith3@xxxxxxxxxxx wrote:
> Is there a way to have a python gui popup from the %pre section
> of a kickstart file to get user input?

You should be able to set DISPLAY to :1 and then display something.

Untested little proof of concept scriptlet

%pre --interpreter /usr/bin/python
import os, sys
os.environ["DISPLAY"] = ":1"
import gtk
win = gtk.Window()
win.add(gtk.Label("hi"))
win.show_all()
gtk.main()
# End

Cheers,

Jeremy




[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux