What's more likely run python/Tkinter with graphics than IDLE? I'm looking at py2exe right now, but that seems useful for a completed program. On that topic, I noticed that my Start->All Progs menu item now, possibly it was there before I installed p2exe, a Python2.4 item show a Command Line sub-item. I've finally figured out to use the Start->Run to get at the python program. I just tried a slight variation on: C:\Python24\python \path\to\myprogram.py gets nowhere. I copied the program int c:\pytho24. I don't seem to be able to copy the window, so I see pretty much what I had before, except it adds: Fatal Pyton error: Pystring_InterInPlace: strings only please! The rest is about the run time error. Kent Johnson wrote: On Sun, Oct 12, 2008 at 7:56 AM, Wayne Watson <[EMAIL PROTECTED]> wrote:The terminal window flashed briefly, and apparently never got to the finish() def, which should keep the window open, but long enough to see there's nothing in it. The program came directly from the MatPlotLib web page. Another one died in a similar way. I put finish() after the plot line and it died the same way. Same if I put it before plot. Same before arrange. Dies same way with only the import line. There must be something wrong with the matplot module install?When Alan says to run the program from a terminal window, he means, - open terminal - type the command to run your program - something likeC:\Python24\python \path\to\myprogram.pyThis is different from just double-clicking the program, the terminal window will stay open. You could also open a terminal window and just run Python, then type or paste the pylab commands into the interpreter. I.e., run terminal, then type\Python24\pythonfrom pylab import *etc. IIUC it is a bad idea to run a Tkinter program from IDLE, it can get a bit confused. That may be the reason for your original error. Kent --
Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) "Things are going to get a lot worse befoe they get worse." -- Lily Tomlin Web Page: <www.speckledwithstars.net/> |
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor