Hello,
I have the following code:
*******************************************************
import gtk
import vte
root = gtk.Window()
root.connect("delete_event", gtk.main_quit)
terminal = vte.Terminal()
command1 = "ls /home"
command2 = "echo 'done'"
terminal.fork_command(command1.split()[0], argv=command1.split())
terminal.fork_command(command2.split()[0], argv=command2.split())
root.add(terminal)
root.show_all()
gtk.main()
****************************************************
What I would like to do is to be able to run command1 and command2 one by
one, and see the output of these commands on the virtual terminal. However,
it seems that the above code only runs command2. How can I make virtual
terminal run both of these commands one by one?
Thanks.
Timothy
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/