From: Hidetoshi NAGAI Date: 2006-02-25T06:53:06+09:00 Subject: Re: Tk horizontal scrollbar infinite loop From: Chris Alfeld Subject: Re: Tk horizontal scrollbar infinite loop Date: Sat, 25 Feb 2006 01:06:27 +0900 Message-ID: > 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] Do you mean that 1.8.4 has no problem? Or still has the problem? # I'm very sorry that I'm poor at English. If 1.8.4 doesn't have the problem, the bug may depend on the following change. ------------------------------------------------------- Wed Nov 2 19:03:06 2005 Hidetoshi NAGAI * ext/tcltklib/tcltklib.c (ip_rbUpdateObjCmd, ip_rb_threadUpdateObjCmd): passed improper flags to DoOneEvent(). ------------------------------------------------------- Anyway, if :pady=>1 fixes the problem, the bug may depend on 'update' step. 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)