Quoting "Giuseppe Penone" <[email protected]>:
it seems to me that the only way to obtain this is to have a server
that controls all the instances, being my app cross platform I
opted for a tcp/ip server in loopback 127.0.0.1.

gtk.threads_enter()
gtk.main()
gtk.threads_leave()

If your application truly needs to be cross platform (the following
holds on windows), don't ever touch gtk.gdk.threads_init/threads_enter
/threads_leave. You'll need to rely on gobject.threads_init and only
allow the main thread to touch your ui (via gobject.idle_add for example).
See http://git.gnome.org/browse/pygtk/tree/examples/threading/gtk_threading.py
for a working example.

If anybody has a clue about treating many instances of the same app
being aware of an already running instance/able to
control the already running instance rather than spawning a new one
please help me.

No ideas here atm, sorry...

mvg,
Dieter


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to