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/electrons.py b/Demo/tkinter/guido/electrons.py index 6079c04..896e079 100755 --- a/Demo/tkinter/guido/electrons.py +++ b/Demo/tkinter/guido/electrons.py
@@ -62,11 +62,11 @@ # Main program def main(): - import sys, string + import sys # First argument is number of electrons, default 30 if sys.argv[1:]: - n = string.atoi(sys.argv[1]) + n = int(sys.argv[1]) else: n = 30