On Fri, 2004-10-15 at 10:13, Matthias Teege wrote: > On Fri, 15 Oct 2004 08:49:31 +0200, Antoon Pardon > <[EMAIL PROTECTED]> wrote: > > > Well one thing you are doing wrong is calling > > your thread by the run method. If you want to > > launch a new thread you should use the start > > method. > > Interesting. Now it works. The app starts and I can work with it and > after some seconds the list is filled up with the data. I've got the > following output: > > # ./ldb.py > leave > run > end > > That is exactly what I want. I also can see two running python > processes now. Now I'm completely confused.
Antoon has a good eye. Just take a look at /usr/lib/python?.?/threading.py. The Thread.run method doesn't actually start the new thread. It just runs the given function. > > Matthias > _______________________________________________ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- Steve McClure <[EMAIL PROTECTED]> _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
