diff options
author | Collin Winter <collinw@gmail.com> | 2007-09-01 23:34:30 +0000 |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-09-01 23:34:30 +0000 |
commit | c79461b1648c9209c3652184572a17eef0a76202 (patch) | |
tree | 47c6238c8c47c4881f6f0523ea86d201cea1fc94 /Doc/library/tkinter.rst | |
parent | 2ac012130549b1ef51ebce11148d01eaca1a7033 (diff) | |
download | cpython-git-c79461b1648c9209c3652184572a17eef0a76202.tar.gz |
Partial py3k-ification of Doc/library/: convert has_key references into either 'k in d' or __contains__; normalize raise statements; convert print statements into print function calls.
Diffstat (limited to 'Doc/library/tkinter.rst')
-rw-r--r-- | Doc/library/tkinter.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/tkinter.rst b/Doc/library/tkinter.rst index c4df617564..f6c5c61a38 100644 --- a/Doc/library/tkinter.rst +++ b/Doc/library/tkinter.rst @@ -184,7 +184,7 @@ A Simple Hello World Program class Application(Frame): def say_hi(self): - print "hi there, everyone!" + print("hi there, everyone!") def createWidgets(self): self.QUIT = Button(self) @@ -441,7 +441,7 @@ back will contain the name of the synonym and the "real" option (such as Example:: - >>> print fred.config() + >>> print(fred.config()) {'relief' : ('relief', 'relief', 'Relief', 'raised', 'groove')} Of course, the dictionary printed will include all the options available and @@ -560,8 +560,8 @@ For example:: self.print_contents) def print_contents(self, event): - print "hi. contents of entry is now ---->", \ - self.contents.get() + print("hi. contents of entry is now ---->", + self.contents.get()) The Window Manager @@ -633,7 +633,7 @@ callback This is any Python function that takes no arguments. For example:: def print_it(): - print "hi there" + print("hi there") fred["command"] = print_it color |