I want to launch frames to plot graphs from the Idle interpreter prompt.
The example plotting utilties from wxPython/wxWindows (wxPlotCanvas),
and from Scientific Python (TkPlotCanvas)are good starting points (and
they both work fine).

The problem is that once the windowing "app" is put into the event loop,
the interpreter hangs up. In other words, after calling app.MainLoop()
(wxWindows) or window.mainloop() (TkPlotCanvas)you can't continue in the
interpreter until closing the frame or window.

I can work around this by breaking the rules, and putting up frames
without event loops (not calling app.MainLoop or window.mainloop).
Everything works, except that then the frames cannot be closed. The
OnCloseWindow event is still called, but it is apparently queued,
waiting to be 'caught' by an event loop that has not been enabled.

I need to be able to call a function that will pop open the Tkinter or
wxWindow frame, but continue to allow input at the interpreter command
line. What's the proper way to do this?


Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
grouppython-list @
postedMar 24, '02 at 11:38p
activeMar 25, '02 at 8:46p

2 users in discussion

Jeff Shannon: 1 post Bptonner: 1 post



site design / logo © 2022 Grokbase