[Tutor] command=F.quit not closing the sample TK program in Vista
I'm playing around with the Tkinter examples on: http://www.alan-g.me.uk/l2p/index.htm and, at least on my Vista laptop, the sample window will not close when you click the Quit button, which is: bQuit = Button(fButtons, text=Quit, command=F.quit) Anyone else have this problem with the sample programs? Python just hangs, and Vista says it's not responding. -- Frank L. Cranky Frankie Palmeri Risible Riding Raconteur Writer “How you do anything is how you do everything.” - from Alabama Crimson Tide training room ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] command=F.quit not closing the sample TK program in Vista
More info: I added C:\Python32 to the path environment variable in Vista, rebooted, and tried the test programs at the command prompt, and it says it can't find the program. If I type Python at the command prompt it opens the Python intrepreter, but it will not run the test.py program. Now I'm really confused:) -- Frank L. Cranky Frankie Palmeri Risible Riding Raconteur Writer “How you do anything is how you do everything.” - from Alabama Crimson Tide training room ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] command=F.quit not closing the sample TK program in Vista
On 19/11/11 14:59, Cranky Frankie wrote: I suspect you were trying to run the program from IDLE or Pythonwin? If so don't. Run the GUI examples from the command line or via Windows Explorer. If you double click the .py file a DOS Box may open in the background, just ignore it for now. But the GUI window will also appear and should work as expected. Once everything works you can rename the file .pyw to get rid of the background DOS box... Try that and let me know how it goes, either via the list or using the mail link at the bottom of the tutor pages. There is a very small chance that this is a Windows Vista/7 issue since I have only run the code in XP... But I don't thoink that should make any difference. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] command=F.quit not closing the sample TK program in Vista
On 19/11/11 14:59, Cranky Frankie wrote: I added C:\Python32 to the path environment variable in Vista, rebooted, and tried the test programs at the command prompt, and it says it can't find the program. You need to provide the full path to the file. C\WINDOWS python C:\the\full\path\to\myfile.py Either that or CD to the folder first: C\WINDOWS CD C:\the\full\path\to C:\the\full\path\to python myfile.py The easiest way is just to double click the file in explorer, the associations should all be set up by the installer... -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor