Hi,
I'm having a perplexing problem. I basically do the following:
button.set_label("new label")
while gobject.MainContext().iteration(gtk.FALSE):
pass
print "Some message..."
time.sleep(1)
gtk.mainquit()
I expected that the gobject.MainContext().iteration() call to update the
button's label--but it doesn't. I can get the same simple program
working in gtk (and in gtkmm and in gtk2-perl, though that's beside the
point), but I'm having trouble with pygtk. Anyway, any help would be
appreciated. The actual .glade and .py files I'm using can be downloaded at
http://www.math.utah.edu/~newren/linux/random/download/example-3.glade
http://www.math.utah.edu/~newren/linux/random/download/example-3.py
To duplicate, run and then highlight both checkbuttonbuttons and then
exit. The second checkbutton's label is supposed to change at that
time.
If it helps, I'm using the version of pygtk comes installed with
Fedora Core 1 (2.0.0 it appears, from the rpm output).
Thanks in advance,
Elijah
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/