[IPython-dev] Re: [SciPy-dev] Generic gui_thread + IPython: solution already exists!
Prabhu Ramachandran
prabhu_r at users.sf.net
Mon Nov 15 11:40:04 EST 2004
>>>>> "JH" == John Hunter <jdhunter at ace.bsd.uchicago.edu> writes:
>>>>> "Prabhu" == Prabhu Ramachandran <prabhu_r at users.sf.net> writes:
JH> Oops, sorry, I'm lame.
JH> This happens in --gthread and --wthread and so doesn't appear
JH> to be matplotlib related; but for the record I'm using cvs
JH> matplotlib.
Hmm, I did not know that --gthread also worked, I thought only
-gthread and -wthread worked. The gthread option is really not doing
anything fancy at all. All I've added is a function that updates
Tkinter when the timer is called and removed gtk's own mainloop with a
hijacked version.
[...]
JH> FYI, I had to hack hijack_wx because on my wx, there is no
JH> wx._core_. It appears to be wx._core. I don't know if a
JH> similar hack needs to be applied to the 2.4 section.
wxPython-2.4 is I think is more reliable and should work out fine.
You'll need my updated patch that I just posted though (it just
changes one line).
To improve the hijacking can you just check these out and let me know?
Does wx._core have a _core_ attribute? If so, then you really need to
access wx._core._core_ and hijack that, this works for me also, so if
this works for you, I'll make that the default and we won't need any
of the hasattr checks.
JH> def hijack_wx():
[...]
Does this hijacked hijack_wx work fine or does it still freeze?
Thanks!
cheers,
prabhu
More information about the IPython-dev
mailing list