Re: Newbie doing lengthy initialization with Tkinter gui

2006-08-14 Thread Maric Michaud
Le dimanche 13 août 2006 16:01, [EMAIL PROTECTED] a écrit : > No neep for thread or Tix modules...! Module thread is always available (at less on platforms where Tkinter is available), while Tix in my example is just intended to use the Meter widget (a progress bar). > # this will *sleep* one m

Re: Newbie doing lengthy initialization with Tkinter gui

2006-08-13 Thread Pasi Oja-Nisula
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Tkinter also has a timer-type function called *after*. Use this to call > your init function just befrore the mainloop call. You gui wil show up > and you can then update it to show progress as you wish > No neep for thread or Tix modules.

Re: Newbie doing lengthy initialization with Tkinter gui

2006-08-13 Thread jmdeschamps
Maric Michaud wrote: > Le dimanche 13 août 2006 12:39, Pasi Oja-Nisula a écrit : > > > The question is how (or where) can I call my loadImages function right > > after the mainloop starts? Or is there a better way to do this? > > > Seems a good use case for multi-thread, try something like this : >

Re: Newbie doing lengthy initialization with Tkinter gui

2006-08-13 Thread Maric Michaud
Le dimanche 13 août 2006 12:39, Pasi Oja-Nisula a écrit : > The question is how (or where) can I call my loadImages function right > after the mainloop starts? Or is there a better way to do this? > Seems a good use case for multi-thread, try something like this : In [28]: import Tix In [29]: ma

Newbie doing lengthy initialization with Tkinter gui

2006-08-13 Thread Pasi Oja-Nisula
I have written a small image viewer application for sorting out photos downloaded from camera. This was quite easy, thanks to the great Python Imaging Library. Since the loading and thumbnailing phase takes a while at the start of the program, I figured that it would be nice to show the gui and p