<br>Date: Mon, 27 Nov 2006 10:27:46 +0100<br>From: Fredrik Lundh &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:fredrik@pythonware.com">fredrik@pythonware.com</a>&gt;<br>Subject: Re: [Tkinter-discuss] Method to call when gui is first
<br> &nbsp; &nbsp; &nbsp; &nbsp;displayed<br>To: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:tkinter-discuss@python.org">tkinter-discuss@python.org</a><br>Message-ID: &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ekeb2i$9i7$1@sea.gmane.org">
ekeb2i$9i7$1@sea.gmane.org</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>here's one way to do it:<br><br> &nbsp; &nbsp; root = Tk()<br><br> &nbsp; &nbsp; # populate UI<br><br> &nbsp; &nbsp; # run event loop until widget is properly displayed
<br> &nbsp; &nbsp; root.wait_visibility()<br><br> &nbsp; &nbsp; # start talking to CVS<br><br> &nbsp; &nbsp; root.mainloop()<br><br><br>I've tried this in the interpeter- outside of the actual program I am targeting- for the moment.<br>When I call Tk() a blank tk window appears.
<br>When I call wait_visibility() the call never returns.<br><br>However, since the call to Tk() pops up the window- my menu should be visible, and the program status bar as well.<br>So I'll try this in my target program as soon as I fix a few errors.
<br><br>BTW I'm stick using python 2.3.4 with whatever version of Tk goes with it- perhaps there are some behavioral differences.<br><br>thanks!<br>