From: Chris Alfeld Date: 2006-02-25T01:06:27+09:00 Subject: Re: Tk horizontal scrollbar infinite loop I still have no idea what the problem is but I found a work around. The following code runs fine: ---- require 'tk' root = TkRoot.new f = TkFrame.new(root) sb = TkScrollbar.new(f,'orient'=>'horizontal') sb.pack('side'=>'bottom','fill'=>'x','pady'=>'1') f.pack('side'=>'bottom','fill'=>'x') Tk.mainloop --- That is, adding 'pady'=>'1' fixes the problem. Note that 'pady'=>'0' results in problem behavior. I have also tried it on 1.8.4 and it appears there as well. ruby 1.8.4 (2005-12-24) [powerpc-darwin8.5.0] Assistance in tracking down the bug is still appreciated. c. On Fri, 24 Feb 2006, Hidetoshi NAGAI wrote: > From: "Chris" > Subject: Tk horizontal scrollbar infinite loop > Date: Fri, 24 Feb 2006 14:38:32 +0900 > Message-ID: <1140759195.727301.113060@z34g2000cwc.googlegroups.com> >> The code below is the simplest code that reproduces the problem. >> Namely, when run, I see my window and scrollbar flicker rapidly, >> apparently between two different sizes. > > Hmmm.... It may be the trouble on your Tcl/Tk. > At least, I couldn't reproduce your problem on my linux box. > Could you report me the result of the following Tcl/Tk script? > ------------------------------------------ > frame .f > scrollbar .f.sb -orient horizontal > pack .f.sb > pack .f > ------------------------------------------ > -- > Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) >