File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,6 @@ namespace import -force ::tk::test::dialog::*
1111upvar #0 ::tk::test::dialog::testDialog testDialog
1212set applyFontCmd [list testDialogFont set]
1313
14- proc Click {button} {
15- if {$button ni "ok cancel apply"} {
16- return -code error "invalid button name \"$button\""
17- }
18- $::testDialog.$button invoke
19- }
20-
2114# -------------------------------------------------------------------------
2215
2316test fontchooser-1.1 {tk fontchooser: usage} -returnCodes error -body {
Original file line number Diff line number Diff line change @@ -388,6 +388,14 @@ namespace eval ::tk::test::colors {
388388
389389namespace eval ::tk::test::dialog {
390390
391+ proc Click {button} {
392+ variable testDialog
393+ if {$button ni " ok cancel apply" } {
394+ return -code error " invalid button name \" $button \" "
395+ }
396+ $testDialog .$button invoke
397+ }
398+
391399 proc PressButton {btn} {
392400 event generate $btn <Enter>
393401 event generate $btn <Button-1> -x 5 -y 5
You can’t perform that action at this time.
0 commit comments