search for: exportselection

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

2006 Dec 12
2
tklistbox...
Hi everyone, I have different listboxes in the same toplevel window. The problem is, if I select (by left clicking) one of those listbox elements, the current selection in the other listboxes is cleared! Anybody knows how I can prevent this? Thanks, --------------------------------------------------- Rita Sousa DME - ME: Departamento de Metodologia Estatística - Métodos Estatísticos INE -
2007 Oct 08
3
tcltk scrollbar
...crollbar(tt, repeatinterval=5,command=function(...)tkyview(lsbDim1,...)) scr2 <- tkscrollbar(tt, repeatinterval=5,command=function(...)tkyview(lsbDim2,...)) lsbDim1<-tklistbox(tt,height=10,selectmode="multiple",yscrollcommand=function(...)tkset(scr1,...),background="white",exportselection=FALSE) lsbDim2<-tklistbox(tt,height=10,selectmode="multiple",yscrollcommand=function(...)tkset(scr2,...),background="white",exportselection=FALSE) for (i in 1:70) { tkinsert(lsbDim1,"end",i) } for (i in 1:70) { tkinsert(lsbDim2,"end",i) }...
2001 Feb 22
2
Problem with tcltk listbox
...hould be highlited. Doing this, the event is one timestep behind. For example selecting first element in A, no slection in B becaus eof the error mentioned above. Then selecting the second item in A , the first of B is highlited. Below the source fragments: prot.listbox<-tklistbox(anzeigeframe,exportselection="0",selectmode="browse") prot.yscroll<-tkscrollbar(anzeigeframe) i <- 1 while (i <= length(resultset[,1])) { tkinsert(prot.listbox,'end',paste(resultset[i,1],resultset[i,2],sep=".")) i<- i+1 } tkconfigure(prot.listbox,yscrollcommand=paste(.Tk.ID(...
2008 May 10
0
Resolved tklistbox selection problem
Turns out I needed to add "exportselection=0". So: foo.lb <- tklistbox(root, height = 5, selectmode = "extended", exportselection = 0) Got this from: http://tolstoy.newcastle.edu.au/R/e2/help/06/12/6955.html (That's what I get for assuming there'd be no tcl/tk questions on this list. D...
2008 Oct 30
1
tklistbox selection
Hi, I'm posting yet another question about tcltk since I'm still struggling with the package. I'm trying to create a tklistbox and a ttkcombobox on the same parent and am having a problem. Here's an example: library(tcltk) tt <- tktoplevel() tcl1 <- tclVar() tcl2 <- tclVar() tclObj(tcl1) <- letters[1:5] tclObj(tcl2) <- LETTERS[1] tb1 <- tklistbox(tt,
2012 Nov 20
1
tcl/tk problem with tklistbox,the " " character and Rcmdr.
I everyone, i have a little problem with tklistbox,the " " character and Rcmdr. Please look at this code require(tcltk) tt<-tktoplevel() levels.list2 <-tklistbox(tt,selectmode="multiple",exportselection="FALSE", height=4, yscrollcommand=function(...)tkset(levels.list2.scroll,...)) levels.list2.scroll<-tkscrollbar(tt,repeatinterval=5,command=function(...)tkyview(levels.list2,...)) tkgrid(levels.list2,levels.list2.scroll) vec<-c("a","b",""," &quot...
2002 Nov 06
1
Combo Box Wdget for Tcl/Tk under R
Hi, I have two questions: First, does anyone know how to put a combobox inside a GUI made with Tcl/Tk ? I think there isn't a simple way to do this (a command like tkcombobox()!), but is it possible to write a more complex code to achieve this ? Second, when I put two listboxes in the same window or frame (even in two different toplevel windows), I cannot select things in the two lists
2003 Jun 06
4
stuck tcltk scrollbars under Windows XP
...<- tktoplevel() window2 <- tktoplevel() xFrame <- tkframe(window2) xScroll <- tkscrollbar(xFrame, repeatinterval=5, command=function(...) tkyview(xBox, ...)) xBox <- tklistbox(xFrame, height=4, selectmode="single", background="white", exportselection="FALSE", yscrollcommand=function(...) tkset(xScroll, ...)) for (x in letters) tkinsert(xBox, "end", x) onOK <- function() { tkgrab.release(window2) tkfocus(window1) tkdestroy(window2) } OKbutton <- tkbutton(window...
2005 Apr 01
0
Selections from tcltk list boxes
...perienced the following problem in getting a selection from a Tk list box using tcltk. This is a long-standing problem, but I've finally decided to tackle it. Consider the following: Library(tcltk) top <- tktoplevel() listbox <- tklistbox(top, height="10", width="2", exportselection="FALSE", selectmode="single") for (x in letters[1:10]) tkinsert(listbox, "end", x) value <- tclVar("") entry <- tkentry(top, width="2", textvariable=value) onOK <- function(){ tkdestroy(top) print(tclvalue(value)) return()...