From: Todd M. <jm...@st...> - 2004-04-01 15:07:55
|
On Thu, 2004-04-01 at 08:55, John Hunter wrote: > >>>>> "John" == John Hunter <jdh...@ac...> writes: > I tested this on windows with idle. Idle now respects matplotlibrc > and loads TkAgg. However, at least on my system, there is still some > idle bug because the Tk window launches and then freezes without > displaying the figure I suspect Todd, the TkAgg author, will be > looking at this soon. [Todd, I had this problem with or without > window_focus set in my test]. I googled around on this and got a suggestion having to do with mainloop handling from an old Guido e-mail. IDLE has a -n switch which you can add to the end of the windows shortcut command line (Target:) under the shortcut properties. When I did this, matplotlib is unfrozen. The e-mail is a little ominous about using the switch: I think a failure in matplotlib could also bring down IDLE and any open windows it might have lying around (like, say, a plot script!). Guido also suggests that running the matplotlib Tkinter mainloop in its own thread to avoid using -n is a bad idea. This is looking dicey. We might want to make a note that using IDLE with -n can be done but is considered risky. Here's Guido: http://aspn.activestate.com/ASPN/Mail/Message/edu-sig/1818398 Regards, Todd -- Todd Miller <jm...@st...> |