An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-sig-gui/attachments/20080228/b3e11956/attachment.pl
[R-gui] Request for users of my R-Tcl/Tk examples,
4 messages · Kshattry, Indra, Alberto Monteiro, Wayne.W.Jones at shell.com +1 more
Indra B. Kshattry wrote:
I am trying to use R-Tcl/TK in my R-code. I want to develop a dialog box for Data Entry. I am trying to make use of Keyword "entry" in your examples, but I could not make it. Could you kindly give me a hint to write the code
Do you mean something like this? I am a newbie with R's tcltk too.
library(tcltk)
tt <- tktoplevel()
input.widget <- tkentry(tt)
output.widget <- tkentry(tt)
tkinsert(input.widget, "end", "4")
tkinsert(output.widget, "end", "24")
gui.fat <- function() {
n <- as.integer(tclvalue(tkget(input.widget)))
fat.n <- prod(1:n)
tkdelete(output.widget, 0, "end")
tkinsert(output.widget, "end", fat.n)
}
button.widget <- tkbutton(tt, text="fat() =", command = gui.fat)
tkpack(input.widget, button.widget, output.widget) # geometry manager
Alberto Monteiro
Hi Indra, It is not exactly clear to me what you are trying to do! Perhaps you could give a better reference to the keyword "entry" example. However, R has a buit in data entry editor (at least for R running on Windows ). for example: my.df<-data.frame(x=rnorm(10),y=rnorm(10)) new.df<-edit(my.df) See also ?dataentry and http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/modalDialog.html Regards Wayne -----Original Message----- From: r-sig-gui-bounces at stat.math.ethz.ch [mailto:r-sig-gui-bounces at stat.math.ethz.ch]On Behalf Of Kshattry, Indra Sent: 28 February 2008 21:57 To: r-sig-gui at stat.math.ethz.ch Subject: [R-gui] Request for users of my R-Tcl/Tk examples, Dear James I am trying to use R-Tcl/TK in my R-code. I want to develop a dialog box for Data Entry. I am trying to make use of Keyword "entry" in your examples, but I could not make it. Could you kindly give me a hint to write the code My email address kshattryindra at hotmail.com Sincerely yours Indra B. Kshattry _______________________________________________ R-SIG-GUI mailing list R-SIG-GUI at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-gui
On 2/28/08, Kshattry, Indra <Indra.Kshattry at cncc.edu> wrote:
I am trying to use R-Tcl/TK in my R-code. I want to develop a dialog box for Data Entry. I am trying to make use of
Check the Rcmdr code. It might provide you with indications. Liviu