[Edu-sig] Getting Started
Randy Latimer
rlatimer@tjhsst.edu
Mon, 16 Sep 2002 09:57:57 -0400 (EDT)
1. Simple Question
I want to load a python program and "run" it. For instance, from the
tutorial:
def countdown(n):
if n == 0:
print "Blastoff!"
else:
print n
countdown(n-1)
I save this as count.py. Go into python. Then what do I do?
Here's the error message I'm getting:
>>> import countdown
>>> countdown(3)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: object of type 'module' is not callable
>>>
2. What's the best way to do GUI in python? PyGTK?
Thanks,
Randy L