[Top][All Lists]

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

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

From: Horst Herb
Subject: Re: [Gnumed-devel] callback from event loop in wxPython
Date: Fri, 30 Jan 2004 07:36:02 +1100
User-agent: KMail/1.5.9

On Fri, 30 Jan 2004 03:40, Karsten Hilbert wrote:
> I haven't been able to find useful docs on how to make the
> wxPython event loop call a function of mine.

Easy. Just pack it into an "OnIdle" event handler.

> 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.

If you want to script / remote control gnumed, I would suggest that is the 
wrong way to do.
I would rather suggest to write an XML-RPC service, which communicates with 
gnumed by posting messages into the main event loop. That is, the XML-RPC 
service as an external interface to the internal massage loop.


reply via email to

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