From: Chris Alfeld Date: 2006-02-26T00:48:22+09:00 Subject: Re: Tk horizontal scrollbar infinite loop > Do you mean that 1.8.4 has no problem? Or still has the problem? 1.8.4 still has the problem. Both of the tests below have the problem. Thanks, c. > Could you try the followings? > ----------------------------------------------- > require 'tk' > > f = TkFrame.new > sb = TkScrollbar.new(f, :orient=>:horizontal) > sb.pack(:side=>:bottom, :fill=>:x) > Tk.update_idletasks # <--- add this > f.pack(:side=>:bottom, :fill=>:x) > > Tk.mainloop > ------------------------------------------------------- > ----------------------------------------------- > require 'tk' > > evloop = Thread.new{Tk.mainloop} > > f = TkFrame.new > sb = TkScrollbar.new(f, :orient=>:horizontal) > sb.pack(:side=>:bottom, :fill=>:x) > f.pack(:side=>:bottom, :fill=>:x) > > evloop.join > ------------------------------------------------------- > -- > Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) >