search for: tkmenubutton

Displaying 6 results from an estimated 6 matches for "tkmenubutton".

Did you mean: menubutton
2007 Oct 19
1
tcltk: help with tkmenubutton
I am struck here. What magic inchantation is required with tkmenubutton? I am converting the examples of Perl/Tk from page... http://gd.tuwien.ac.at/languages/perl/Hajji-Perlkurs/part4/tkperl.html ... to R's tcltk. But I don't know how to convert one line in this example: library(tcltk) # create a main window mw <- tktoplevel() # a menu consists of a...
2001 Sep 19
2
tcltk: Difficulties creating menus
...; \&set_bg, -variable => \$background_color, -value => $_); } MainLoop; sub set_bg { print "Background value is now: $background_color\n"; $mw->configure(-background => $background_color); } I cannot get anything 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&...
2000 Aug 09
2
tcltk_example
Hello R and tcltk users... I'm running into difficulties applying the tkmenubutton() and tklistbox() functions, found in the tcltk package, to a simple gui. My search for R code which utilizes these two functions has come up empty. Currently, I am attempting to translate pure "Tcl/Tk" code to R with little to no success. So far, the most helpful tool for learning...
2003 Aug 15
1
menubutton don´t work
...p", value=arch) tkconfigure(b2,state="normal") } ver<-function(n){ tabla<-read.table(n,header=TRUE,comment.char="@") nbre<-names(tabla) tabla } tt<-tktoplevel() b<-tkbutton(tt,text="abrir",command=function()archivos()) tkpack(b) tkpack(mb <- tkmenubutton(tt, text="Datos",state="disabled")) m <- tkmenu(mb,tearoff=FALSE) tkconfigure(mb,menu=m) b2<-tkbutton(tt,text="Ver",command=function()ver(arch),state="disabled") tkpack(b2)
2003 Sep 08
1
add checkbutton and the variable(wrong length of vector "b")
...ile (i<=length(b)) { #the length of b is wrong!! print(tclvalue(b[i])) i<-i+1 } } borra<-function(){ assign("vectPath",c(),.GlobalEnv) assign("b",c(),.GlobalEnv) tkdelete(m,"0","end") } tt <- tktoplevel() tkpack(mb <- tkmenubutton(tt, text="Datos")) m <- tkmenu(mb,tearoff=FALSE) tkconfigure(mb,menu=m) b<-tkbutton(tt,text="abrir",command=function()archivos()) tkpack(b) b3<-tkbutton(tt,text="ver",command=function()ver()) tkpack(b3) b4<-tkbutton(tt,text="Borrar",command=funct...
2003 Mar 06
1
tkexit
Sorry, my question is if exists a command tkexit in R, i need a command how exit of tcl for close an aplication. How to use him. Thank