[R] help with tkbind.tag

solares@unsl.edu.ar solares at unsl.edu.ar
Sat Jul 17 00:00:35 CEST 2004


Hi, excuse me, i don´t understan how bind a tag in R, how to use the
function tkbind.tag, i used them but appear an error
library(tcltk)
tt<-tktoplevel()
editor<-tktext(tt)
tkpack(editor)
tkinsert(editor,"1.0","first line \n")
tkinsert(editor,"2.0","Second line \n")
tkinsert(editor,"3.0","Third line \n")
tkinsert(editor,"end", "1. Texto que reacciona a eventos. d1")
tkinsert(editor,"end","\n\n")
tktag.configure(editor,"d1",foreground="red")
 tktag.bind(editor,"d1",command=function(){})
tkbind(editor,"d1",<B1-Motion>, command=function(){print("hello"))})

i wish when move the mouse under the text appear a message "hello", how i
have this?, i search help in the R mailing list
but not exist. Thanks Ruben
>Error ......
thanks Ruben




More information about the R-help mailing list