On Tue, Sep 23, 2003 at 06:07:00PM +0200, Michael Bauer wrote: > I'am calling this part of code in a for loop several times. The for loop > itselfe is called in a for loop several times. But the tooltips get only > displayed for the last for loop ran trough.
See http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq03.007.htp The trick here is to realize where your callback can take a while to return, or where it is dynamically changing the window contents, and add a section like this in the body of your callback handler: while gtk.events_pending(): gtk.mainiteration(gtk.FALSE) This tells gtk to process any window events that have been left pending. If your handler has a long loop, for instance, inserting this snippet as part of the loop will avoid it hanging the window till the callback has finished. Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
