[pygtk] centralized multiple instances of a pygtk app

Giuseppe Penone giuspen at gmail.com
Fri Apr 1 00:03:40 WST 2011


>
>  which must be on a separate thread or separate process.
>>
>
> I don't understand why this must be.  The controller object (or whatever)
> can run just fine in the same thread as all of the windows. The one example
> I have handy is Reinteract, which has a window associated with each
> "notebook" and only allows each notebook to be opened once.  An object of
> class "Application" keeps track of all of these windows.  You may wish to
> consider Application.open_notebook() in
> http://git.fishsoup.net/cgit/reinteract/tree/lib/reinteract/application.py (This may not be the best example, because Reinteract does use threads.
>  But the windows and the Application object all live in the main thread.)
>
>
In my idea a server is dedicated only to listen, so I don't understand how I
could work in a single thread/process, I will take a look to the example
link that you provided anyway,
thank you and best regards,
Giuseppe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110331/995cb7ee/attachment.html>


More information about the pygtk mailing list