Displaying 6 results from an estimated 6 matches for "tkselection".
Did you mean:
selection
2001 Feb 22
2
Problem with tcltk listbox
...}
tkpack(protas.yscroll,protas.listbox,side="left",fill="y")
tkpack(sas.yscroll,sas.listbox,side="left",fill="y")
tkbind(protas.listbox,"<Button-1>",function()
{
asselection<- tkcurselection(protas.listbox)
tkselection.clear(sas.listbox,0,"end")
tksee(sas.listbox,asselection) tkselection.set(sas.listbox,asselection)
})
})
Thanks
--
Frank Gerrit Zoellner
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list...
2006 Oct 21
0
tcltk: multiple listboxes, selection
...elframe", text = "X value")
tl.x <- tklistbox(frame.x, height = length(xvals) / 2,
width = 50, selectmode = "browse", background = "white")
for(i in seq(from=1, to=length(xvals), by=2)) {
tkinsert(tl.x, "end", xvals[[i]])
}
tkselection.set(tl.x, 0)
tkgrid(tl.x, sticky="news")
# Y values
frame.y <- tkwidget(tt, "labelframe", text = "Y value(s)")
tl.y <- tklistbox(frame.y, height = 20, #length(yvals) / yvals.field.count,
yscrollcommand=function(...) tkset(scr.y,...),...
2008 Nov 23
1
tklistbox - R-Objekt
...eight=4,selectmode="single",background="white")
tkgrid(tklabel(tt,text="select method for LAI calculation"))
tkgrid(tl)
method<- c("method1","method2")
for (i in (1:2)){
tkinsert(tl,"end",method[i])
}
tkselection.set(tl,0)
OnOK <- function(){
choice<-method[as.numeric(tkcurselection(tl))+1]
tkdestroy(tt)
}
OK.but <-tkbutton(tt,text=" OK ",command=OnOK)
tkbind(tkgrid, "<Return>",OnOK)
tkgrid(OK.but)
The function works, but it...
2003 Jun 06
4
stuck tcltk scrollbars under Windows XP
...tkbutton(window2, text="OK", width="12", command=onOK,
default="active")
tkgrid(xBox, xScroll, sticky="nw")
tkgrid.configure(xScroll, sticky="ns")
tkgrid(xFrame, sticky="w")
tkgrid(OKbutton, sticky="w")
tkselection.set(xBox, 0)
tkbind(window2, "<Return>", onOK)
tkfocus(window2)
tkgrab(window2)
I find that I can make the scrollbar stick under Windows XP by repeatedly
and rapidly pressing the scroll-down button. As mentioned, removing the
calls to tkgrab() and tkgrab.release()...
2006 Dec 12
2
tklistbox...
...a,height=4,selectmode="multiple",background="white")
tkgrid(tklabel(janela,text="Seleccione o(s) trimestre(s):"))
tkgrid(tl)
trim <- c("T1","T2","T3","T4")
for (i in (1:4))
{
tkinsert(tl,"end",trim[i])
}
#tkselection.set(tl,2)
#Listbox com as regiões
t2<-tklistbox(janela,height=4,selectmode="multiple",background="white")
tkgrid(tklabel(janela,text="Seleccione pelo menos uma das regiões:"))
tkgrid(t2)
reg <- c("Norte","Centro, Lisboa e Alentejo",&qu...
2013 Sep 01
1
[PATCH] remove a duplicate tk function definition (and alphabetize)
'tkcoords' is defined twice (in the same way) in src/library/tcltk/R/Tk.R.
Attached is a patch against r63780 that removes the duplicate
definition and alphabetizes the functions.
I've read that minor patches such as this should be sent to r-devel [1].
Scott
[1] http://permalink.gmane.org/gmane.comp.lang.r.devel/33987
--
Scott Kostyshak
Economics PhD Candidate
Princeton