Re: [R] Aling elmentos into Windows with TK

From: eduardo san miguel <eduardosanmi_at_gmail.com>
Date: Thu, 08 May 2008 13:25:06 +0200


Hi,

There are many ways to do that.

An example:

require(tcltk)

tt <- tktoplevel()
te <- tkentry(tt)
tl <- tklabel(tt)
tb <- tkbutton(tt)

tkconfigure(tl, text = 'Enter text')
tkconfigure(tb, text = 'Show', command = function() {cat(as.character(tkget(te)))})

tkgrid(tl, row = 0, column = 0, sticky = 'e')
tkgrid(te, row = 0, column = 1, sticky = 'e')
tkgrid(tb, row = 1, column = 0, columnspan = 2)

Sys.sleep(2)

tkgrid.remove(tl, te, tb)

tkgrid(tl, row = 0, column = 0, sticky = 'w')
tkgrid(te, row = 1, column = 0, sticky = 'w')
tkgrid(tb, row = 0, column = 1, rowspan = 2)


Anyway you should have a look \Tcl\doc which is included in the standard R dist.

Greetings

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
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. Received on Thu 08 May 2008 - 11:37:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 08 May 2008 - 12:30:37 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive