[R] gtk, RGtk2 and error in callback: delet_event in mai window

jverzani jverzani at gmail.com
Mon Mar 28 18:38:54 CEST 2011


Cleber N. Borges <klebyn <at> yahoo.com.br> writes:

> 
> Hello All,
> 
> I am trying to learn about the GUI in R (with GTK+Glade+RGtk2) and in my 
> test I don't get sucess in to make
> an callback to destroy the application...
> 
> When I try to define an function for "delet-event callback", I get the 
> error message:
> (with mouse click in X window)
> 
> *Error in function ()  : *
> *  unused argument(s) (<pointer: 0x017ca000>, <pointer: 0x017db218>)*
> 
> So, somebody has a tips for me?
> Thanks in advanded
> 
> Cleber


The callback is expecting two variables to be passed in. If you aren't 
going to use them,  just put ... in  the signature:

window1_delete_event <- function(...) print('Work or dont work???')

... snip ...



More information about the R-help mailing list