Hi -

I'd like to allow non-PyQt python programs to access some of my application's functionality.

I'd like normal python code to send instructions to my PyQt window, which would then update. This would be mostly 1-way, so it would say something like "Show a graph with this data".

The main problem is that there has to be a QApplication, which means a "normal" python program can't just control my window.

The only way around this I can think of is to run my code as a separate application. The controlling application would then convert everything to text commands, send it over a pipe or some other RPC interface.

Another possibility is to run the QApplication in a separate thread, and somehow send the commands between the two threads.

The pipe interface sounds definitely workable, if messy and slow (possibly quite a lot of data needs to be transported to the PyQt code). I've no idea whether the threading idea could work.

Does anyone have any suggestions? Would threading work?

Thanks

Jeremy

--
Jeremy Sanders <[EMAIL PROTECTED]>
http://www.jeremysanders.net/                Cambridge, UK
Public Key Server PGP Key ID: E1AAE053

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to