[pygtk] Threads in GTK, yet another doubt about this mistery
Antoon Pardon
Antoon.Pardon at rece.vub.ac.be
Wed Apr 25 17:24:06 WST 2007
Sorry for my rather late answer.
On Tue, Mar 27, 2007 at 08:02:31PM -0300, Gabriel Falcão wrote:
> Hello friends!
>
> Everytime a check any program that use gtk threading i see the use of
> gobject threads init, locks, though threading.Thread before the gtk.main()
>
> But my doubt is: "Why i never see the inverse?"
>
> Why not put the gtk.main() inside a threading.Thread e do anything before
> this?
> I just want to know what are the problems when using it.
I don't think there are problems with it. I have one program where
gtk.main is started in a thread and it works without a problem.
It is a rather peculiar program though since it is a kind of
test suite for other GTK programs. It was the only time I
thought it usefull to have GTK started from a thread though.
--
Antoon Pardon
More information about the pygtk
mailing list