-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Will the block be run in another thread? Will there be any
synchronization problem? I mean, if you have to remove something from
the model along with the view change, multithreading may cause some
trouble without locking.
_why wrote:
| 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
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIQ4/E55XhWT57AX8RAp0NAKDQLerxix9wPshpOWyK9TPceHEmrgCfaspl
JTqjSo0ZC4itSvf+WscXx4U=
=9Hob
-----END PGP SIGNATURE-----