GUI with blocking database access

Toni Andjelkovic toni at soth.at
Sat Nov 9 15:56:27 EST 2002


In article <5ec37a54.0211050322.e663b54 at posting.google.com>,
Tim Scheffler wrote:
> Does somebody have an idea how to construct a GUI, that can trigger
> such an I/O module? I thought about to run two separate processes on
> WIN-NT one that provides the GUI and one that runs the I/O and let
> them communicate through a pipe or something like that. But here I
> dont know how to start two processes from one python script as fork()
> wont work on WIN-NT.

If you really need to wrap the I/O library in a separate process,
consider using non-blocking sockets instead of pipes. It gives you more
flexibility, although it's a bit more complex to implement. The
SocketServer and asyncore modules might help you there.

cheers,
-- 
Toni Andjelkovic
<toni at soth.at>




More information about the Python-list mailing list