[pygtk] Tow instance of the same pyGTK application in a the same
process
John Ehresman
jpe at wingware.com
Wed Jan 24 23:45:29 WST 2007
Cyril Giraudon wrote:
> Now I 'd like to launch several instance of this application from a
> process with threads.
> All instances share nothing at all but the master thread can communicate
> with them (simple requests).
>
> What are the prerequisites for the PyGTK application ?
> What is the easier method to instantiate this app from a process ?
>
> I forget, It's on Windows XP :-(
Multiple threads using gtk is not supported on win32, see
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Threads.html
It may be better to use multiple processes in any case unless all of the
components that you are using are thread safe -- a lot of code isn't
thread safe or use different thread safety models and it's a good idea
to assume code won't work with threads until proven otherwise.
Cheers,
John
More information about the pygtk
mailing list