[IPython-dev] [matplotlib-devel] IPython proposal: getting rid of "ipython -pylab\-wthread\etc."
ellisonbg.net at gmail.com
Thu Jul 16 15:13:11 EDT 2009
I tried ctypes first, but with no luck. Here is what I tried:
>>> import readline
>>> import ctypes
<_FuncPtr object at 0x76420>
>>> def my_callback():
... print "In am here"
... return 0
>>> cbf = ctypes.CFUNCTYPE(ctypes.c_int)(my_callback)
<CFunctionType object at 0x769d0>
>>> ctypes.pythonapi.PyOS_InputHook = cbf
Do you see anything wrong with this?
I should probably try it again to see if I can make it work though.
On Thu, Jul 16, 2009 at 11:35 AM, Robert Kern <robert.kern at gmail.com> wrote:
> On 2009-07-16 13:11, Ville M. Vainio wrote:
> > On Thu, Jul 16, 2009 at 9:06 PM, Brian Granger<ellisonbg.net at gmail.com>
> >> I am fully aware that some environments upgrade things like GUI toolkits
> >> over very long time scales. More important - there isn't a released
> >> of wx that has these capabilities in it. It will be a long time before
> > I thought you were able to make wx work with a cython-based
> > PyOS_InputHook extension. Possibly a C-based extension could fix this
> > issue for users of old wx versions?
> Or even just a bit of ctypes?
> Robert Kern
> "I have come to believe that the whole world is an enigma, a harmless
> that is made terrible by our own mad attempt to interpret it as though it
> an underlying truth."
> -- Umberto Eco
> IPython-dev mailing list
> IPython-dev at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev