From: Hidetoshi NAGAI Date: 2008-12-03T07:57:40+09:00 Subject: Re: Trying to get back into Tk From: Kenneth McDonald Subject: Trying to get back into Tk Date: Wed, 3 Dec 2008 05:42:41 +0900 Message-ID: > YSCROLL = TkScrollbar.new(FRAME) do command { > |first, last| TEXT.yview first, last > pack 'side' => 'right', 'fill' => 'y' ^^^ Here is the reason of your trouble. > } > end The 'pack' method call is written in the callback of the scrollbar. You have to write it at external of the callback. For example, ------------------------------------ YSCROLL = TkScrollbar.new(FRAME) do command {|first, last| TEXT.yview first, last} pack 'side' => 'right', 'fill' => 'y' end ------------------------------------ -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)