diff options
| author | Tim Peters <tim.peters@gmail.com> | 2004-07-18 06:16:08 (GMT) |
|---|---|---|
| committer | Tim Peters <tim.peters@gmail.com> | 2004-07-18 06:16:08 (GMT) |
| commit | 182b5aca27d376b08a2904bed42b751496f932f3 (patch) | |
| tree | df13115820dbc879c0fe2eae488c9f8c0215a7da /Demo/tkinter/matt/packer-and-placer-together.py | |
| parent | e6ddc8b20b493fef2e7cffb2e1351fe1d238857e (diff) | |
| download | cpython-182b5aca27d376b08a2904bed42b751496f932f3.zip cpython-182b5aca27d376b08a2904bed42b751496f932f3.tar.gz cpython-182b5aca27d376b08a2904bed42b751496f932f3.tar.bz2 | |
Whitespace normalization, via reindent.py.
Diffstat (limited to 'Demo/tkinter/matt/packer-and-placer-together.py')
| -rw-r--r-- | Demo/tkinter/matt/packer-and-placer-together.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Demo/tkinter/matt/packer-and-placer-together.py b/Demo/tkinter/matt/packer-and-placer-together.py index 4ceec54..184d56b 100644 --- a/Demo/tkinter/matt/packer-and-placer-together.py +++ b/Demo/tkinter/matt/packer-and-placer-together.py @@ -1,6 +1,6 @@ from Tkinter import * -# This is a program that tests the placer geom manager in conjunction with +# This is a program that tests the placer geom manager in conjunction with # the packer. The background (green) is packed, while the widget inside is placed @@ -17,15 +17,15 @@ def createWidgets(top): # area is inaccesssible. f = Frame(top, width=200, height=200, background='green') - # note that we use a different manager here. - # This way, the top level frame widget resizes when the - # application window does. + # note that we use a different manager here. + # This way, the top level frame widget resizes when the + # application window does. f.pack(fill=BOTH, expand=1) # now make a button f.button = Button(f, foreground='red', text='amazing', command=dothis) - # and place it so that the nw corner is + # and place it so that the nw corner is # 1/2 way along the top X edge of its' parent f.button.place(relx=0.5, rely=0.0, anchor=NW) @@ -39,4 +39,3 @@ app = createWidgets(root) root.geometry("400x400") root.maxsize(1000, 1000) root.mainloop() - |
