search for: tkcheckbutton

Displaying 9 results from an estimated 9 matches for "tkcheckbutton".

2003 Sep 09
1
charge a vector with variables and to use as variable in a checkbutton?
hello, how i cant to charge in form dynamic a checkbutton, try to do it with a vector be charged automaticamente but not works, for example library(tcltk) tt<-tktoplevel() f<-tkframe(tt) tkpack(f) i<-2 if (i==1) {b1<-tkcheckbutton (f,text="b1",variable="b1",relief="raised");tkpack(b1);print(tclvalue ("b1"))}else if (i==2) {b1<-tkcheckbutton (f,text="b1",variable="b1",relief="raised");tkpack(b1);print(tclvalue ("b1"));b2<-tkcheckbutton(f,tex...
2003 Oct 01
0
curious error with tkcheckbutton
...;c1","c2","c3","c4","c5","c6") b<-c() i<-1 while (i<=j){ aux<-paste("b",i,sep="") aux<-tclVar(init=0) b<-c(b,as.character(aux)) tclvalue(b[i])<-0 i<-i+1 } i<-1 while (i<=j){ t<-tkcheckbutton(f,text=nbre[i],variable=eval(b [i]),relief="raised",command=function()ver()) tkpack(t) i<-i+1 } ver<-function(){ k<-1 while (k<=j){ print(tclvalue(b[k])) k<-k+1 } } any help will be welcome. Thank you Ruben
2001 Sep 19
2
tcltk: Difficulties creating menus
...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("add", tkcheckbutton, label="blue", variable=color) tkpack(tkbutton(tt, text="Quit", command=function()tkdestroy(tt))) Any pointers or examples would be greatly appreciated. Thanks, Dirk -- Better to hav...
2003 Oct 09
0
curious mistake in tkradiobutton
...;c1","c2","c3","c4","c5","c6") b<-c() i<-1 while (i<=j){ aux<-paste("b",i,sep="") aux<-tclVar(init=0) b<-c(b,as.character(aux)) tclvalue(b[i])<-0 i<-i+1 } i<-1 while (i<=j){ t<-tkcheckbutton(f,text=nbre[i],variable=eval(b [i]),relief="raised",command=function()ver()) tkpack(t) i<-i+1 } ver<-function(){ k<-1 while (k<=j){ print(tclvalue(b[k])) k<-k+1 } } any help will be welcome. Thank you Ruben
2006 Jun 21
0
Some R-Tcl/Tk-BWidget newbie questions.
...ot;, "Posten") tcl(tn, "raise", "Relaties") tcl(tn, "raise", "Algemeen") } gui.maak.tab <- function(tt) { tkgrid(tklabel(tt, text="Instellingen"), sticky="news") test.button <- tclVar("one two") tkgrid(tkcheckbutton(tt,variable=test.button)) }
2006 Dec 12
2
tklistbox...
...janela janela <- tktoplevel() tkwm.title(janela,"Apuramentos - Inquérito ao Emprego") #Estilo do texto estilo_texto <- tkfont.create(family="verdana",size=8,weight="bold") tkgrid(tklabel(janela,text="Trimestre:",font=estilo_texto)) cb1 <- tkcheckbutton(janela) cb1Valor <- tclVar("0") tkconfigure(cb1,variable=cb1Valor) tkgrid(tklabel(janela,text="1T"),cb1) #Listbox com os trimestres #janela <-tkframe(janela) tl<-tklistbox(janela,height=4,selectmode="multiple",background="white") tkgrid...
2002 Jan 28
2
R/Tk from batch file
Dear R-help, Reccently I've been working on sample size estimates for our forensic scientists and have to make the work accessible to them, preferably in some Windows based graphical form. The obvious choise was Tk via R, so I now have a couple of very nice, user friendly front ends for calculating betas and beta-binomials which run equally well under Windows and other systems (same code -
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello, On Mac OS X, certain Aqua/Quartz UI functionality requires an application to be launched from within an app bundle, or (alternatively) requires a Carbon application with a resource fork. Playing with the wxWidgets distribution, I discovered that it is quite easy and transparent to make such a Carbon app from (I guess) any command line application. When applied to the R executable called
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello, On Mac OS X, certain Aqua/Quartz UI functionality requires an application to be launched from within an app bundle, or (alternatively) requires a Carbon application with a resource fork. Playing with the wxWidgets distribution, I discovered that it is quite easy and transparent to make such a Carbon app from (I guess) any command line application. When applied to the R executable called