Hi, In <12n5dc9ofnuge4 / corp.supernews.com> "Re: Gtk::ProgressBar set_fraction doesn't work" on Sun, 3 Dec 2006 20:35:11 +0900, Paul Lutus <nospam / nosite.zzz> wrote: > > i have some problems with the Gtk::ProgressBar. I download a file and i > > want to show a progressbar. The method below creates a new dialog with a > > bar and starts the download for each file. The puts-line work very well > > and i can see a dialog, there is no update. Does anybody know whats > > going wrong? > > The thread in which your process is running, that would update the progress > bar, is busy downloading your file, so it cannot update the progressbar > dislay. This is a very common problem, normally solved by creating a > separate thread to perform the download, thus freeing the display thread to > perform updates. Unfortunately, because of how threads are implemented in > Ruby, this approach often doesn't work. > > I have not had any success updating progress bars using worker threads and > the Qt GUI library, you may have a different experience with > GTk:ProgressBar. Gtk.idle_add may help you. Thanks, -- kou