[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] callback from event loop in wxPython
From: |
Karsten Hilbert |
Subject: |
[Gnumed-devel] callback from event loop in wxPython |
Date: |
Thu, 29 Jan 2004 17:40:55 +0100 |
User-agent: |
Mutt/1.3.22.1i |
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.
The general idea would be to make the event loop check for
availability of outside instructions and send out a custom
wxEvent. A gmScriptingPortal() borg would intercept those,
read the instructions from the inbound stream (pipe, socket,
etc), compile and execute them. Sanity checking would be
allowed-only by allowing outside macros to only call methods
of the scripting portal as opposed to methods of any other
gnumed object. Kind of like a DBMS with stored procedures but
without direct SQL access.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
- [Gnumed-devel] callback from event loop in wxPython,
Karsten Hilbert <=