A question about tkinter update

Feng writes:

I bought a chinese version of your book. when i tried the paddle ball at this step: ‘Bounce (example 4) - ball moving up and down’ at the first part of the code, you add a line tk.update(). I cannot see why this is *necessary, since there are no balls moving at all. Then, i com...

Continue reading...

Tcl Error

丁明 writes (edited for spelling):

In your book python for kids chapter 13, when I run the program, the python shell has a error I can’t understand. my python version 3.6.0. Thank you for your reply!!

tcl-error.png

I’m not sure if the Chinese edition has captured the text on page 199 of the English vers...

Continue reading...
askcolor

askcolor

Isai writes:

*I am having trouble with this code in page 176:

from tkinter import *
colorchooser.askcolor()

When I load it into IDLE, I get a blank canvas, and I can’t close it, I have to restart the shell.

I have installed the proper ActiveTcl version (8.5), and no longer get the message...

Continue reading...

Text position in tkinter

Drew M writes:

I have a question I am sure I don’t know :) In tkinter I am creating a game and can’t figure out how to set dimensions for text. I need it on the middle. My canvas is 1000 by 1000 so I divided in half. Which is of course 500. Now again, my question is how to put it there.

... Continue reading...

Python3.5 on macOS

If you’re installing Python3.5 on macOS, you don’t need to follow the Automator instructions in Python for Kids any more. After installation, it’s as simple as searching for IDLE in Spotlight (the magnifying glass in the top righthand side of the menu bar) and double-clicking on (usually) the top hi...

Continue reading...

A parameter called evt

Dudley B writes:

I’m a Business Analyst trying to learn how to code. Luckily there’s Python, a suitable language for absolute beginners like me. Thank God also for your book, Python for Kids. It’s a great book which explains Python fundamentals in a fun and easy way. *In Chapter 14 of the...

Continue reading...

Restart when running tkinter

Craig S writes:

My son is having a problem running the random rectangle program on page 174 of Python for Kids. He is using version 2.7.7, so the Tkinter module must be capitalized (just so you don’t suggest to capitalize it). Every time he tries to run the module, it comes up with a new win...

Continue reading...