[Tkinter-discuss] Method to call when gui is first displayed

Fredrik Lundh fredrik at pythonware.com
Mon Nov 27 10:27:46 CET 2006


Tony Cappellini wrote:

> I want to call the function which talks to CVS after the gui is 
> displayed, but without formal having to do anything.

here's one way to do it:

     root = Tk()

     # populate UI

     # run event loop until widget is properly displayed
     root.wait_visibility()

     # start talking to CVS

     root.mainloop()

</F>



More information about the Tkinter-discuss mailing list