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...

PfK and Python 2

Tara P writes:

I am going to be teaching Python 2 this coming school year and I am looking for a supplemental learning tool and projects for myself and my students. Will your book Python for Kids work *with Python 2?

I saw that it is recommended to use Python 3 however the curriculum I am t...

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...

Python on Chromebook

Cynthia B writes:

I purchased your book Python for Kids so that my 11 year old daughter and I could start to learn code together. *We are trying to install Python on her (lenovo 100S) chromebook to no avail.

We followed several prompts and purchased a python shell which has been installed but...

Continue reading...

Pendrive

Kishore writes:

I bought this great book “python for kids”. I want to give it as a gift to kid in India. She doesn’t have internet, but has a computer. What do I need to download and give in a pendrive, so that she can finish the book without an internet connection.

Apart from the book i...

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...
Stick figure error

Stick figure error

WangXin writes (excerpted):

I got a confusing error from the Python 3.4 (command line - 64 bit), it shows me this: “NameError: name ‘collided_left is not defined’” , I have checked my code over and over again and I can’t find the error. Could you help me to check my code when convenient?

... Continue reading...

Tkinter mainloop issue

Martin writes:

First of all thank you for writing “Python for Kids”. It’s a great book and offers “instant gratification”. My 8-year-old is already hacking his way through the pages on his brand new Raspberry Pi. He (we) ran into a bit of trouble when we started playing with Tkinter. Your initia...

Continue reading...

Python 3.5 beta issue on Windows

Tony writes:

I have installed Python 3.5.0b3, and when I tried to make the shortcut, it looked very different from the book’s examples and I did not get the toolbar with “File”, “Edit”, “Options”, etc. on the top. Please tell me how to correctly complete the installation process. Thank you, ...

Continue reading...

Syntax error in myletter.py

I have recently bought your book, Python For Kids and I think it’s great and easy to understand *except for one small thing.

It tells me to put this into the Shell:

spaces = ’ ’ * 25 print(’%s 12 Butts wynd’ % spaces) print(’%s Twinklebottom heath’) % spaces) print() print() print(’Dear Sir’)...

Continue reading...