On Thu, Oct 8, 2009 at 10:51 PM, Terry Brown <terry_n_br...@yahoo.com> wrote:

> This could be done by:
>
> 1. Leo checking for commands written to a file periodically on idle.
>   Simple, but involves polling, which is hacky and not as responsive
>   as option 2.
>
> 2. Some other option Ville or someone else is about to suggest :-)

Let's use plain old socket server; we can adapt the code that I wrote
a zillion years ago from here:

http://projects.scipy.org/ipython/ipython/browser/ipython/trunk/IPython/Extensions/ipy_server.py

The only change we need to do is, instead of ip.runlines(), store the
text as script and run it in leo mainloop. For qt, this can be done by
QTimer.singleShot.

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to