diff options
Diffstat (limited to 'library/optMenu.tcl')
-rw-r--r-- | library/optMenu.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/optMenu.tcl b/library/optMenu.tcl index 7cfdaa0..aa2c2fb 100644 --- a/library/optMenu.tcl +++ b/library/optMenu.tcl @@ -31,7 +31,7 @@ proc ::tk_optionMenu {w varName firstValue args} { if {![info exists var]} { set var $firstValue } - menubutton $w -textvariable $varName -indicatoron 1 -menu $w.menu \ + menubutton $w -textvariable [set varName] -indicatoron 1 -menu $w.menu \ -relief raised -highlightthickness 1 -anchor c \ -direction flush menu $w.menu -tearoff 0 |