Tcl/Tk warning message when starting IDLE

Stan W writes (NB. edited for brevity):

Over the last couple of days I have started using your great book with my two sons (13 and 15 years old). I’m reaching out to you with the following question because I have noticed other people asking about the same issue online, with at least one ment...

Continue reading...

Left and right, or top and bottom

Matthias writes:

My name is Matthias and I am 7 years old and I like Python. I knew a little about Python before I read your book, but I am learning more by reading your book. I like your book.

I think on page 202 is a little mistake. You wrote:

"We'll use this new object variable in the dra...

Continue reading...

Problem with the turtle module

Mark F writes:

I think that it's a great book but I am running into one issue. If you're not too busy, I'm hoping you could answer it for me. In Chapter 8, Classes and Objects, you reintroduce the turtle module. You say that we can create 'an object of the pen class', which makes sense.

import...

Continue reading...
Loop confusion

Loop confusion

Justin B writes:

I recently started the section on "For Loops" and am somewhat confused about something. The section (page 55) runs a loop for "HugeHairyPants." I setup the loop as you indicated and actually understood the result just fine.

However, I decided to add a variable in the mix and w...

Continue reading...

Python installation confusion on Mac OS X

Justin J writes:

I installed python 3.3.2 for my macbook running version 10.6.8 and typed this in, open -a "/Applications/Python 3.2/IDLE.app" --args -n and it didn't work:

"The action Run Shell Script encountered an error. Check the action's properties and try running the workflow again"

I...

Continue reading...

What is -n for

John writes:

Quick question regarding the -n used in the shortcut for IDLE. I realize that it starts IDLE with no subprocesses, but what does that mean and why do we want to do it?

There's precious little on the net describing what the -n switch does. From the IDLE documentation:

If IDLE...

Continue reading...

Python Kinderleicht

This arrived in the mail from No Starch today:

python-kinderleicht.webp

Sehr cool!

The German translation of Python for Kids is available from the publisher dpunkt verlag and amazon.de (probably others, but those were the first couple of links that popped up).

Continue reading...

Tkinter problems on the Raspberry Pi

Ben writes:

I am 12 and I am reading your book, Python for Kids. I have recently confronted a problem with the module tkinter. I have recently got a rasberry pi to program on python. I am pretty sure that tkinter is already installed on python, but when I run something like:

def hello(): print...

Continue reading...

On Feedly

Rather than burning a significant amount of time rolling my own alternative to the soon-to-be-lamented Google Reader, I've been evaluating the various closed and open source options, finally settling on Feedly.

It's... okay... but the mobile app (at least the iPhone version) isn't... well... p...

Continue reading...
iOS

Scratch or Python

Marvin writes:

I have a 10 year old son who is interested in programming. He really loves playing games so I thought he should learn how they are created. I am a bit confused on which language to have him start.

My question is should he start with Scratch (and for how long?) or should I start...

Continue reading...