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: Karsten Hilbert
Subject: Re: [Gnumed-devel] callback from event loop in wxPython
Date: Fri, 30 Jan 2004 14:02:58 +0100
User-agent: Mutt/1.3.22.1i

>> 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.
That'll slow things down to a crawl last time I tried. May
have to try again but remember some wx* docs to say that
that's not the way to go.

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

a) notice the "| ?>" part ?
b) I don't care about the mechanism of getting the script INTO
   GnuMed. The problem I am having is to make wxPython check
   FOR availability of outside instructions.
so, c) HOW do I make the XML-RPC service post events into the
   main event loop. that's exactly my question
d) legacy 3rd-party apps are unlikely to have any of the
   interfaces we put forward, be that pipe, socket, XML-RPC,
   you-name-it. so we'll have to write wrappers gating the
   outside interface into the one GnuMed-internal interface
   anyways
e) my development machine Python doesn't have XML-RPC yet

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

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