awei0426 / swfk

Automatically exported from code.google.com/p/swfk
Other
0 stars 0 forks source link

potential problem on tkinter on page 84 (or 94 of 160) #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Dear admirable author,

first, good work for the great book! It's easy to understand
and pleasant to read, but it seems I've spotted an error in chapter9
that may hinder the kids from learning about TK interface, so
I submit report as follow:

What steps will reproduce the problem?
1. type in the code on top of p84  (or 94 of 160)
2. execute the code

What is the expected output? What do you see instead?
it's expected to show a window with a button. But no 
window show up actually.

What version of the product are you using? On what operating system?
python 3.x on windows, also tried python 2.6 (with little modification on
the code, ie. change tkinter to Tkinter)

Suggested solution:
by adding one more line of code (ie. tk.mainloop() ),
the code will run with no problem

Original issue reported on code.google.com by kwong999...@gmail.com on 3 Apr 2012 at 4:50

GoogleCodeExporter commented 8 years ago
thats a great tip thanks. :-)

Original comment by theslot...@googlemail.com on 19 Apr 2012 at 1:28

GoogleCodeExporter commented 8 years ago
No problem ;)

Original comment by kwong999...@gmail.com on 19 Apr 2012 at 3:22