Description Usage Arguments Value Note Author(s) See Also
DEPRECATED!! (compatibility wrappers for RGtk 1!)
These functions allow one to register and remove a function that is called periodically at a fixed interval.
1 2 | gtkAddTimeout(interval, f, data=NULL)
gtkRemoveTimeout(id)
|
interval |
the number of milliseconds to wait before invoking the call. |
f |
the function should take one or zero arguments
depending on whether the argument |
data |
a value, which if specified, will be passed to the
function |
id |
the object identifying the timer function in Gtk
that was returned by a call to |
gtkAddTimeout
returns an object
of class "GtkTimeoutId"
.
This is an integer giving the identifier
returned by the low-level Gtk interface.
THIS STUFF IS VERY OLD AND DEPRECATED (compatibility wrappers for RGtk 1)
This does not currently work when running directly in R. However, when running R inside another application such as GGobi, Gnumeric, etc. it and other event-loop facilities will work.
If one wanted to reset the timeout but with a different
interval, one should register a new timeout within the
function and return FALSE
.
Duncan Temple Lang <duncan@research.bell-labs.com>
gtkAddIdle
gtkRemoveIdle
gtkAddCallback
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.