Menu

#1 error screen after hitting "options" button

open
nobody
None
5
2003-11-16
2003-11-16
No

downloaded tcltk 8.4.4 binary from the activestate website,
and installed on redhat 9. downloaded tktetris-3.2.tar
and
hextris0_2.tcl, and installed in home directory.

when i hit the "options" button on tktetris, i get this
error:

ambiguous option "-pad": must be -column, -columnspan, \ -in, -ipadx, -ipady, -padx, -pady, -row,
-rowspan, or -sticky
ambiguous option "-pad": must be -column, -columnspan, \ -in, -ipadx, -ipady, -padx, -pady, -row,
-rowspan, or -sticky
while executing
"grid $w.stats -sticky ew -pad 2"
(procedure "Options" line 23)
invoked from within
"Options"
(in namespace inscope "::Tetris" script line 1)
invoked from within
"::namespace inscope ::Tetris Options"
invoked from within
".l.opts invoke"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke]"
(procedure "tk::ButtonUp" line 22)
invoked from within
"tk::ButtonUp .l.opts"
(command bound to event)

when i hit the "options" button on hextris, i get a
similar error:

ambiguous option "-pad": must be -column, -columnspan, \ -in, -ipadx, -ipady, -padx, -pady, -row,
-rowspan, or -sticky
ambiguous option "-pad": must be -column, -columnspan, \ -in, -ipadx, -ipady, -padx, -pady, -row,
-rowspan, or -sticky
while executing
"grid $w.stats -sticky ew -pad 2"
(procedure "Options" line 22)
invoked from within
"Options"
(in namespace inscope "::Hextris" script line 1)
invoked from within
"::namespace inscope ::Hextris Options"
invoked from within
".l.opts invoke"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke]"
(procedure "tk::ButtonUp" line 22)
invoked from within
"tk::ButtonUp .l.opts"
(command bound to event)

it worked ok when i changed the lines in the code which
read "-pad 2" to read "-padx 2 -pady 2", or just removed
the string "-pad 2" entirely on every line where it
occurred.

Discussion


Log in to post a comment.