librelist archives

« back to archive

Force Drawing

Force Drawing

From:
Trans
Date:
2010-03-19 @ 19:10
Hi,

I'm running through a loop that downloads urls. Before each loop I
want to add a para to the stack so the user knows which file is being
downloaded. Code:

      button "Fetch", :width=>100, :left=>635 do
        @client.list.each do |url|
          @videos.append do
            para(url, :stroke=>white)
          end
          @client.download_url(url)
        end
      end

Problem is none the paras actually become visible until all the urls
are downloaded. Is there anyway to force the drawing. Or is there a
better way to go about this?