Displaying 9 results from an estimated 9 matches for "tkradiobutton".
2008 Mar 19
1
Radio Buttons or similars
...that creates a Radio Buttons, and I need that this
function return the selected value in the Radio Buttons. I would like that,
if somebody know as I could return the value, you say me as do it.
Next, I show the function
function1<-function(){
require(tcltk)
tt <- tktoplevel()
rb1 <- tkradiobutton(tt)
rb2 <- tkradiobutton(tt)
rbValue <- tclVar("oranges")
tkconfigure(rb1,variable=rbValue,value="apples")
tkconfigure(rb2,variable=rbValue,value="oranges")
tkgrid(tklabel(tt,text="Which do you prefer?"))
tkgrid(tklabel(tt,text="Apples "...
2003 Oct 09
0
curious mistake in tkradiobutton
Hello, the following code produces an error when executing it, it is a code
that produces 6 checkbutton that at
the beginning are empty, when selecting the first checkbox he says that
doesn't know the second
variable tcl, he say:
[1] "1"
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class
= "tclObj") :
[tcl] can't
2000 Sep 28
0
No subject
...+ but.wid2 <- tkbutton(tt2, text="OK", command=function() tkdestroy(tt2))
+ tkpack(lab.wid2, but.wid2)
+ labp <- identify(xd$iv802, xd$AVGT, label=xd$FIPS)
+ dev.print(png, "templabs.png", width=600,height=600)
+ }
+
+ tclvar$choice <- 99
+ rbut.wid <- tkradiobutton(tt, text="Precipitation", value=0,
+ variable=tclvar$choice,
+ command=pptlabs)
+ rbut.wid2 <- tkradiobutton(tt, text="Temperature", value=1,
+ variable=tclvar$choice,
+ command=templabs)
+ but.wid <- tkbutton(tt, text="FINISHED", command=function(){ dxcbutt...
2009 Oct 19
1
Problem with geometry manager in TclTK
...t;- tkframe(ask.form, relief="groove")
tkgrid(tklabel(Title.frame,text="Input File Format", font="Times 15",
foreground="dark red"))
tkgrid(Title.frame)
Choose.frame <- tkframe(ask.form, relief="groove", borderwidth=2)
file.format1 <- tkradiobutton(Choose.frame)
file.format2 <- tkradiobutton(Choose.frame)
tkconfigure(file.format1, variable=file.format, value="1")
tkconfigure(file.format2, variable=file.format, value="2")
tkgrid(tklabel(Choose.frame, text="Format 1 "),file.format1)
tkgrid(tklabel(Choo...
2000 Sep 28
1
tcltk package functionality
...utliers")
but.wid2 <- tkbutton(tt2, text="OK", command=function() tkdestroy(tt2))
tkpack(lab.wid2, but.wid2)
labp <- identify(xd$iv802, xd$AVGT, label=xd$FIPS)
dev.print(png, "templabs.png", width=600,height=600)
}
tclvar$choice <- 99
rbut.wid <- tkradiobutton(tt, text="Precipitation", value=0,
variable=tclvar$choice,
command=pptlabs)
rbut.wid2 <- tkradiobutton(tt, text="Temperature", value=1,
variable=tclvar$choice,
command=templabs)
but.wid <- tkbutton(tt, text="FINISHED", command=function(){ dxcbutt <-
"...
2001 Sep 19
2
tcltk: Difficulties creating menus
...ing similar to work under R. Adding a tkmenubutton is
easy, but I fail to get it to "connect" to an actual menu composed of
check or radiobuttons:
library(tcltk)
color<-"blue"
tt <- tktoplevel()
tkpack(mb <- tkmenubutton(tt, text="Color"))
## does nothing
## tkradiobutton(mb, variable=color, text="blue", value="blue",
## command=set.bg)
##
## Error: Error in .Tcl(.Tcl.args(...)) :
## [tcl] bad option "add": must be cget or configure.
## tkadd(mb, tkcheckbutton, label="blue", variable=color)
##
## Dito
## tkcmd(...
2000 Sep 29
1
Two tcltk questions and Re: tcltk package functionality
...ion -- shows an example:
tcltk.test <- function(x1=1:10, x2=10:1) {
library("tcltk")
# define first toplevel-widget
tt <- tktoplevel()
tktitle(tt) <- "Diagnostics"
label.widget <- tklabel(tt, text="Choose data for plot!")
rbut.wid1 <- tkradiobutton(tt, text="x1", value="0", variable="choice")
rbut.wid2 <- tkradiobutton(tt, text="x2", value="1", variable="choice")
but.done <- tkbutton(tt, text="FINISHED", command=function(){...
2000 Sep 29
0
Is it R or I?
...2, but.wid22, but.wid23)
# wait until DONE is pressed
tclvar$done3 <- "F"
tkwait.variable("done3")
}
tclvar$choice <- 99
# THE PROGRAM STARTS DISK SWAPPING HERE...AND FINALLY DOES A
# SEGMENTATION FAULT...SOMETIMES....
rbut.wid1 <- tkradiobutton(tt, text="ActualVsPredicted", value=0,
variable="choice", command=actvsprd)
rbut.wid2 <- tkradiobutton(tt, text="ResidualPlot", value=1,
variable="choice", command=residplot)
but.plot <- tkbutton(tt, text="Exit", command=functi...
2006 Mar 02
0
tcltk error when calling a dialog
Hello;
I've got several radiobuttons in tcltk with the following sintaxis:
tk2.rd <- /tkradiobutton(/frame4,command=plotDialog1,text="New Q plot", value=2, variable=OUTPLOTtclVar/)/
All the buttons call the same function "plotDialog1". With the objective
of call a dialog to select some plotting options.
When I select one of the radiobuttons and the windows with the plotting...