[Tutor] pack
Alan Gauld
alan.gauld at freenet.co.uk
Sat Nov 5 23:24:03 CET 2005
Note: CC'ing tutor list to make reply visible to all.
> i had to close PYTHONWIN to get out of the program.
Aha!
There are problems in running Tkinter inside both IDLE and Pythonwin.
Basically both programs try to trap abnormal termination - which includes
the GUI close messages...
IMHO, to test Tkinter programs its better to run the program from a DOS
Window - or just double click in explorer although you might not see
any error messages that way.
Personally I have a DOS window open at the folder with my Tkinter program.
I edit in IDLE or vim and sabe
I run the program by explicitly calling python:
E:\PROJECTS\PYTHON> python myguiprog.py
I close the GUI and repeat except I can now use F3 in the DOS window
to recall the last command (or up arrow if DOSKEY is defined)
So after the first time I simply
- edit the code,
- save it and then
- Alt-tab to DOS and
- hit F3 Return.
Its quicker to do than to read!
HTH,
Alan G
Author of the learn to program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld
More information about the Tutor
mailing list