summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/tk/lib/tcltk.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/tk/lib/tcltk.rb b/ext/tk/lib/tcltk.rb
index 7796bb86ef2..121f42c26ed 100644
--- a/ext/tk/lib/tcltk.rb
+++ b/ext/tk/lib/tcltk.rb
@@ -295,6 +295,7 @@ class TclTkWidget < TclTkCommand
res = @ip._eval_args(command, exp, *args)
# fail("can't create Widget") if res != exp
# for tk_optionMenu, it is legal res != exp
+ return res
else
fail("first parameter is not TclTkInterpreter")
end