commit | 856023a098c60ba0d2bcfd01c5cd8ccff7db97b5 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Mon Oct 25 17:50:20 2010 +0000 |
committer | Georg Brandl <georg@python.org> | Mon Oct 25 17:50:20 2010 +0000 |
tree | e2af1c1b988b218c1408fac9db4b3dc3465819ea | |
parent | 07e4f1565b8d922fe0df5cf3a15e113f7c562046 [diff] [blame] |
#3018: tkinter demo fixes for py3k.
diff --git a/Demo/tkinter/guido/hanoi.py b/Demo/tkinter/guido/hanoi.py index a29b1d7..34a0bba 100644 --- a/Demo/tkinter/guido/hanoi.py +++ b/Demo/tkinter/guido/hanoi.py
@@ -125,11 +125,11 @@ # Main program def main(): - import sys, string + import sys # First argument is number of pegs, default 4 if sys.argv[1:]: - n = string.atoi(sys.argv[1]) + n = int(sys.argv[1]) else: n = 4