Google for pyos_inputhook
--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To post to this group, send email to leo-e...@googlegroups.com.
To unsubscribe from this group, send email to leo-editor+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
Thanks. This certainly is a barrel of worms :-)
I suppose the only essential question is, do you know of any reason
why ipy_leo.py can not be ported to IPython 0.11? I'd like to attempt
this, but of course any help you could give would be appreciated.
Edward
The API (ipapy.py) provided by Ipython has changed since I did
ipy_leo. Back when I last looked into it, the ipython api was in a bad
state of flux as the team was deprecating the old api's before
counterparts were available, for various code clarity reasons. It's
probably stable now, I haven't worked with it for a long while.
IPython also lost a bunch of important (for me functionality) in the
refactoring process, that's why I stuck with the old version and
didn't bother to put work into upgrading ipy_leo (to a version I
wasn't going to use).
I'd recommend you to google "embedding ipython" and work from there. I
will help with any questions I can.
> I'd recommend you to google "embedding ipython" and work from there. I
> will help with any questions I can.
Thanks. These are useful:
http://ipython.org/ipython-doc/dev/interactive/reference.html
Especially:
QQQ
IPython has excellent support for working interactively with Graphical
User Interface (GUI) toolkits, such as wxPython, PyQt4, PyGTK and Tk.
This is implemented using Python’s builtin PyOSInputHook hook. This
implementation is extremely robust compared to our previous
thread-based version. The advantages of this are:
* GUIs can be enabled and disabled dynamically at runtime.
* The active GUI can be switched dynamically at runtime.
* In some cases, multiple GUIs can run simultaneously with no problems.
* There is a developer API in IPython.lib.inputhook for
customizing all of these things.
QQQ
It occurs to me that it might be possible to run (the new) IPython
from blender, and then run Leo from IPython. That is, IPython might
solve some interprocess communications problems that would otherwise
bedevil us.
Edward