On Sun, Jun 01, 2008 at 10:03:32PM +0200, Axel Etzold wrote:
> is it possible to show  some element for some time and then eliminate it 
> again ?
> I tried various methods with sleep etc., but that just causes the execution 
> of the
> whole program to delay at the beginning ... not when I wanted it ...

The simplest way is to use a timer.  It works like JavaScript's
setTimeout, except expressed in seconds, not milliseconds.

  timer 0.5 do  # will run in half a second
    @ele.show
    timer(2.0) { @ele.hide }  # and then two seconds later
  end

> PS. I'm working on Windows with the newest release of Shoes. On Ubuntu, I 
> couldn't
> get Shoes installed -- the -lruby file cannot be found ...
> Any help for that problem would be appreciated.

Have you installed all the libraries in the README?

  # aptitude install libcairo2-dev libpixman-1-dev libpango1.0-dev \
      libungif4-dev libjpeg62-dev libgtk2.0-dev vlc libvlc0-dev \
      libsqlite3-dev ruby1.8-dev rake

It sounds like ruby1.8-dev is probably missing.

_why

Reply via email to