11# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
2- #
2+ #
33# $Id$
44#
55# Tix Demostration Program
@@ -27,25 +27,25 @@ def RunSample(w):
2727 # to invent new months?
2828 #
2929 # [Hint] The -options switch sets the options of the subwidgets.
30- # [Hint] We set the label.width subwidget option of both comboboxes to
30+ # [Hint] We set the label.width subwidget option of both comboboxes to
3131 # be 10 so that their labels appear to be aligned.
3232 #
3333 a = Tix .ComboBox (top , label = "Month: " , dropdown = 1 ,
34- command = select_month , editable = 0 , variable = demo_month ,
35- options = 'listbox.height 6 label.width 10 label.anchor e' )
34+ command = select_month , editable = 0 , variable = demo_month ,
35+ options = 'listbox.height 6 label.width 10 label.anchor e' )
3636
3737 # $w.top.b is a non-drop-down combo box. It is not editable: we provide
3838 # four choices for the user, but he can enter an alternative year if he
3939 # wants to.
4040 #
4141 # [Hint] Use the padY and anchor options of the label subwidget to
42- # align the label with the entry subwidget.
42+ # align the label with the entry subwidget.
4343 # [Hint] Notice that you should use padY (the NAME of the option) and not
4444 # pady (the SWITCH of the option).
4545 #
4646 b = Tix .ComboBox (top , label = "Year: " , dropdown = 0 ,
47- command = select_year , editable = 1 , variable = demo_year ,
48- options = 'listbox.height 4 label.padY 5 label.width 10 label.anchor ne' )
47+ command = select_year , editable = 1 , variable = demo_year ,
48+ options = 'listbox.height 4 label.padY 5 label.width 10 label.anchor ne' )
4949
5050 a .pack (side = Tix .TOP , anchor = Tix .W )
5151 b .pack (side = Tix .TOP , anchor = Tix .W )
@@ -70,17 +70,17 @@ def RunSample(w):
7070 b .insert (Tix .END , '1996' )
7171
7272 # Use "tixSetSilent" to set the values of the combo box if you
73- # don't want your -command procedures (cbx:select_month and
73+ # don't want your -command procedures (cbx:select_month and
7474 # cbx:select_year) to be called.
7575 #
7676 a .set_silent ('January' )
7777 b .set_silent ('1995' )
7878
7979 box = Tix .ButtonBox (w , orientation = Tix .HORIZONTAL )
8080 box .add ('ok' , text = 'Ok' , underline = 0 , width = 6 ,
81- command = lambda w = w : ok_command (w ))
81+ command = lambda w = w : ok_command (w ))
8282 box .add ('cancel' , text = 'Cancel' , underline = 0 , width = 6 ,
83- command = lambda w = w : w .destroy ())
83+ command = lambda w = w : w .destroy ())
8484 box .pack (side = Tix .BOTTOM , fill = Tix .X )
8585 top .pack (side = Tix .TOP , fill = Tix .BOTH , expand = 1 )
8686
0 commit comments