Dear, How to properly use the function: .Tcl.callback( ) to trigger a single R function with different values? Below is my stupid solution ... The expected behavior is this but I would like to know how to do it right.
Thanks in advanced cleber ############################################## library( tcltk ) top <- tktoplevel() dummyCopyCutR <- function( optionXXX ){ if( optionXXX=="copy" ) print("Option Copy") if( optionXXX=="cut" ) print("Option Cut" ) } strcmd <- strsplit( .Tcl.callback( dummyCopyCutR ), " %" )[[1]][1] tkbind( top, '<Control-c>', paste( strcmd, 'copy' ) ) tkbind( top, '<Control-x>', paste( strcmd, 'cut' ) ) ############################################## --- Este email foi escaneado pelo Avast antivĂrus. https://www.avast.com/antivirus [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.