mirror of
https://github.com/python/cpython.git
synced 2025-09-18 06:30:38 +00:00
#3018: tkinter demo fixes for py3k.
This commit is contained in:
parent
07e4f1565b
commit
856023a098
18 changed files with 196 additions and 179 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue