aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Demo/tkinter/matt/entry-with-shared-variable.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-25 17:50:20 +0000
committerGeorg Brandl <georg@python.org>2010-10-25 17:50:20 +0000
commit856023a098c60ba0d2bcfd01c5cd8ccff7db97b5 (patch)
treee2af1c1b988b218c1408fac9db4b3dc3465819ea /Demo/tkinter/matt/entry-with-shared-variable.py
parent07e4f1565b8d922fe0df5cf3a15e113f7c562046 (diff)
downloadcpython-856023a098c60ba0d2bcfd01c5cd8ccff7db97b5.tar.gz
cpython-856023a098c60ba0d2bcfd01c5cd8ccff7db97b5.zip
#3018: tkinter demo fixes for py3k.
Diffstat (limited to 'Demo/tkinter/matt/entry-with-shared-variable.py')
-rw-r--r--Demo/tkinter/matt/entry-with-shared-variable.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Demo/tkinter/matt/entry-with-shared-variable.py b/Demo/tkinter/matt/entry-with-shared-variable.py
index 473a596dabd..7d93da764e0 100644
--- a/Demo/tkinter/matt/entry-with-shared-variable.py
+++ b/Demo/tkinter/matt/entry-with-shared-variable.py
@@ -1,5 +1,4 @@
from tkinter import *
-import string
# This program shows how to make a typein box shadow a program variable.
@@ -35,7 +34,7 @@ class App(Frame):
# because it's being looked at by the entry widget, changing
# the variable changes the entry widget display automatically.
# the strange get/set operators are clunky, true...
- str = string.upper(self.contents.get())
+ str = self.contents.get().upper()
self.contents.set(str)
def print_contents(self, event):