Do you think we'll be able to get the GTK/win32 setup
> working? You probably know that platform better than
> anybody else here, so I'm pretty useless on this one.
> But it would be great to be able to make a final ipython
> release before I get into the 'big cleanup', so that
> matplotlib users on all platforms/backends can use pylab
> happily while I work on the cleanup.
Gee, some people are never satisfied!
I was able to replicate the gtk win32 problem in the matplotlib
interactive.py, which as you know is based on Brian McErlean and John
Finlay's ASPN cookbook recipe. However, the original recipe does not
have this bug. By diffing them, I traced the problem to the call to
gtk.threads_init(). This call is required on linux and OSX, but
breaks win32. Typical. So it's a hack but at least it works in my
tests thus far.
In IPython/Shell.py on or around line 424, replace the mainloop
if sys.platform != 'win32':
if self.gtk.gtk_version >= 2:
Incidentally, this or some other change appears to fix the GTK OSX
confirm on exit bug (the only other change here is that I call 'start'
after the threads_init call).
Thus I can happily report that with this change and the one you
included in CVS yesterday for output redirection in wx, all the
backends seem to be working across all the major platforms in ipython.
And there was much rejoicing.