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

2006-11-27 Thread Cameron Laird
On Mon, Nov 27, 2006 at 05:44:38PM +0100, [EMAIL PROTECTED] wrote: . . . > > > >I want to call the function which talks to CVS after the gui is > > > >displayed, > > > >but without formal having to do anything. > >

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

2006-11-27 Thread mkieverpy
> On Mon, Nov 27, 2006 at 09:54:52AM +0100, [EMAIL PROTECTED] wrote: > > >I want to call the function which talks to CVS after the gui is displayed, > > >but without formal having to do anything. > . > > The problem is: you should use the event callback just to start > > the n

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

2006-11-27 Thread mkieverpy
> On Mon, Nov 27, 2006 at 09:54:52AM +0100, [EMAIL PROTECTED] wrote: > > >I want to call the function which talks to CVS after the gui is displayed, > > >but without formal having to do anything. > . > > The problem is: you should use the event callback just to start > > the n

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

2006-11-27 Thread Cameron Laird
On Mon, Nov 27, 2006 at 09:54:52AM +0100, [EMAIL PROTECTED] wrote: . . . > >I want to call the function which talks to CVS after the gui is displayed, > >but without formal having to do anything. .

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

2006-11-27 Thread Fredrik Lundh
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()

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

2006-11-27 Thread mkieverpy
Oops, sorry - too fast. The Map-Event occurs every time the widget is mapped to the screen, i.e. every transition from iconified->windowed calls ready(). So the ready-callback should be changed so it runs only once. Some questions from me: Any pointer to a better documentation (better than 'man n

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

2006-11-27 Thread mkieverpy
Tony Cappellini askted: >I want to call the function which talks to CVS after the gui is displayed, >but without formal having to do anything. >After I call mainloop(), the gui is displayed, but then nothing happens >until the user selects a menu option. (as it should be). >Is there a tk method t

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

2006-11-27 Thread mkieverpy
Tony Cappellini askted: >I want to call the function which talks to CVS after the gui is displayed, >but without formal having to do anything. >After I call mainloop(), the gui is displayed, but then nothing happens >until the user selects a menu option. (as it should be). >Is there a tk method t

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

2006-11-26 Thread Tony Cappellini
I'm porting a cmd line app to a tkinter gui app. The program displays 2 menu items, and a status bar, when the program is initially launched. I need to kick off a function which goes out to the lan, performs some CVS operations which take a variable amount of time, depending on network activity.