[fxruby-users] Timer function usage

Meinrad Recheis meinrad.recheis at gmail.com
Thu Nov 5 05:05:39 EST 2009

you need to give it a method:

aTimer = @topwin.addTimeout(1000, method(:hello))

-- henon

On Thu, Nov 5, 2009 at 9:42 AM, dave L <dglnz at yahoo.com> wrote:

> Hi Meinrad,
> I have been battling with trying to get the timer event to work - wanting
> to have an event/methd run every X minutes.
> from my reading of things this should work but it fails with no
> methoderror.
>  aTimer = @topwin.addTimeout(1000, (:hello))
> Hello is a define method further up in code - currently it puts hello to a
> listbox every second as proof of it working.
> also tried this.
> aTimer = Timer.new
> aTimer = @topwin.addTimeout(1000, (:hello))
> my ultimate aim is to have it reset after countdown so it's a continous
> timer to fire an event that will request a read from a database (thinking in
> memory SQLlite at present) and refresh the listbox.
> Oh i did get over my other issues (more of a work around but still) -
> that's all working now <sheepish grin>
> dave.
> Email slow, clunky, unreliable? Switch to Yahoo!Xtra Mail<http://au.rd.yahoo.com/nz/mail/tagline/2009/mailsignup/*http://yahoo.co.nz/mail>,
> New Zealand's new email address.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20091105/f6d990ed/attachment.html>

More information about the fxruby-users mailing list