From: Hidetoshi NAGAI Date: 2004-11-15T11:12:15+09:00 Subject: Re: update delay related to TkOptionMenu Hi, From: "Mark Volkmann" Subject: update delay related to TkOptionMenu Date: Mon, 15 Nov 2004 03:05:54 +0900 Message-ID: <030d01c4ca74$94cc4a90$0200a8c0@MarkDesktop> > However, the change isn't visible until I click the TkOptionMenubutton > a second time. What am I missing? Hmmm... On my environment (Linux, Ruby 1.8 HEAD, Tcl/Tk 8.4.7), it seems working properly. Maybe it fails to update widgets on your environment. Please try to add 'Tk.update' at last of the callback. > w.menu.bind('') do > entry_var.value = > if option_var.value == 'Marathon' then '26.2' > elsif option_var.value == '10K' then '6.2' > else '0' > end Tk.update # <== HERE > end -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)