summaryrefslogtreecommitdiff
path: root/Demo/tix/samples/PopMenu.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/tix/samples/PopMenu.py
parente6ddc8b20b493fef2e7cffb2e1351fe1d238857e (diff)
downloadcpython-git-182b5aca27d376b08a2904bed42b751496f932f3.tar.gz
Whitespace normalization, via reindent.py.
Diffstat (limited to 'Demo/tix/samples/PopMenu.py')
-rwxr-xr-xDemo/tix/samples/PopMenu.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Demo/tix/samples/PopMenu.py b/Demo/tix/samples/PopMenu.py
index 602eafdc5c..32f3229294 100755
--- a/Demo/tix/samples/PopMenu.py
+++ b/Demo/tix/samples/PopMenu.py
@@ -1,6 +1,6 @@
# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
-# $Id$
+# $Id$
#
# Tix Demostration Program
#
@@ -27,9 +27,9 @@ def RunSample(w):
p.bind_widget(top)
p.bind_widget(but)
- # Set the entries inside the PopupMenu widget.
+ # Set the entries inside the PopupMenu widget.
# [Hint] You have to manipulate the "menu" subwidget.
- # $w.top.p itself is NOT a menu widget.
+ # $w.top.p itself is NOT a menu widget.
# [Hint] Watch carefully how the sub-menu is created
#
p.menu.add_command(label='Desktop', underline=0)
@@ -45,9 +45,9 @@ def RunSample(w):
box = Tix.ButtonBox(w, orientation=Tix.HORIZONTAL)
box.add('ok', text='Ok', underline=0, width=6,
- command=lambda w=w: w.destroy())
+ command=lambda w=w: w.destroy())
box.add('cancel', text='Cancel', underline=0, width=6,
- command=lambda w=w: w.destroy())
+ command=lambda w=w: w.destroy())
box.pack(side=Tix.BOTTOM, fill=Tix.X)
top.pack(side=Tix.TOP, fill=Tix.BOTH, expand=1)