[pygtk] Updating a window
Brian Rowlands (Greymouth High School)
RowlandsB at greyhigh.school.nz
Wed Jun 23 07:33:04 WST 2010
Novice but eager to learn. I'm writing a login script which displays a
GUI window and which I want to update with comments as the script runs.
My script finishes with:
if __name__ == '__main__':
ghs = LoginApp()
ghs['user'].set_text(user)
ghs['pc'].set_text(pc_name)
set_up_login_window()
ghs.window.show()
do_stuff()
gtk.main()
The issue I have is that the outline of the window appears with the
inside blank until do_stuff() completes when the window is fully
defined.
If I have:
..........
gtk.main()
do_stuff()
then the window appears fine but nothing gets done.
Don't know if there is a command to update a window.
Probably simple. If not, a reference/pointer would be appreciated.
Many Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20100623/d8741609/attachment.htm
More information about the pygtk
mailing list