gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] callback from event loop in wxPython


From: Ian Haywood
Subject: Re: [Gnumed-devel] callback from event loop in wxPython
Date: Fri, 30 Jan 2004 03:20:53 -0500
User-agent: Mutt/1.3.28i

On Thu, Jan 29, 2004 at 05:40:55PM +0100, Karsten Hilbert wrote:
> Horst, Ian, others,
> 
> I haven't been able to find useful docs on how to make the
> wxPython event loop call a function of mine.
> 
> I want to check for events on a <pipe | socket | ?> to enable
> GnuMed to be scripted. First use of this will be to allow
> third party apps to attach to a running gnumed (if --slave
> specified) and lock it into a particular patient.

I have researched this issue in the past. It is very difficult to make
wx apps listen to an arbitrary file descriptor, however, they can respond to 
sockets
generated within the libray (wxSocket class) with normal events. 

Horst Herb wrote:
> XML-RPC server

Problem is, the XML-RPC server in the Python libraries does not use a wxSocket, 
it uses a 
'plain' socket, a similar problem exists trying to listen for traffic on 
postgres connections.
A blocking background thread which invokes an event in the main thread may be 
the best solution. 

Ian

Attachment: pgpqg3Xf1dk1_.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]