[R] help with tkbind.tag

From: <solares_at_unsl.edu.ar>
Date: Sat 17 Jul 2004 - 08:00:35 EST


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



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 17 08:08:52 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:55:03 EST