aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Demo/tkinter/matt/entry-simple.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-07-18 06:16:08 +0000
committerTim Peters <tim.peters@gmail.com>2004-07-18 06:16:08 +0000
commit182b5aca27d376b08a2904bed42b751496f932f3 (patch)
treedf13115820dbc879c0fe2eae488c9f8c0215a7da /Demo/tkinter/matt/entry-simple.py
parente6ddc8b20b493fef2e7cffb2e1351fe1d238857e (diff)
downloadcpython-182b5aca27d376b08a2904bed42b751496f932f3.tar.gz
cpython-182b5aca27d376b08a2904bed42b751496f932f3.zip
Whitespace normalization, via reindent.py.
Diffstat (limited to 'Demo/tkinter/matt/entry-simple.py')
-rw-r--r--Demo/tkinter/matt/entry-simple.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/Demo/tkinter/matt/entry-simple.py b/Demo/tkinter/matt/entry-simple.py
index cf82b89ce9b..5146e6fd953 100644
--- a/Demo/tkinter/matt/entry-simple.py
+++ b/Demo/tkinter/matt/entry-simple.py
@@ -1,25 +1,24 @@
from Tkinter import *
-import string
+import string
# This program shows how to use a simple type-in box
class App(Frame):
def __init__(self, master=None):
- Frame.__init__(self, master)
- self.pack()
+ Frame.__init__(self, master)
+ self.pack()
- self.entrythingy = Entry()
- self.entrythingy.pack()
+ self.entrythingy = Entry()
+ self.entrythingy.pack()
- # and here we get a callback when the user hits return. we could
- # make the key that triggers the callback anything we wanted to.
- # other typical options might be <Key-Tab> or <Key> (for anything)
- self.entrythingy.bind('<Key-Return>', self.print_contents)
+ # and here we get a callback when the user hits return. we could
+ # make the key that triggers the callback anything we wanted to.
+ # other typical options might be <Key-Tab> or <Key> (for anything)
+ self.entrythingy.bind('<Key-Return>', self.print_contents)
def print_contents(self, event):
- print "hi. contents of entry is now ---->", self.entrythingy.get()
+ print "hi. contents of entry is now ---->", self.entrythingy.get()
root = App()
root.master.title("Foo")
root.mainloop()
-