Sha256: c0a4b480c33c7d0ddfb117cd82458fd3376e9bd110619f23e55ee6f51263be66
Contents?: true
Size: 353 Bytes
Versions: 2
Compression:
Stored size: 353 Bytes
Contents
# wait b=box({x:300}) t=text("click me to kill the wait process") waiter= wait 5 do b.set({color: :orange, smooth: 20}) end t.touch do t.clear({wait: waiter}) end def notification(message,duration) notification=text({content: message, x: 300, y: 69}) grab(:atome).wait duration do notification.delete() end end notification(:hello, 3)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
atome-0.4.7.0 | vendor/assets/build/medias/rubies/examples/Old_examples/wait.rb |
atome-0.4.5.4 | vendor/assets/build/medias/rubies/examples/Old_examples/wait.rb |