Displaying 20 results from an estimated 600 matches similar to: "tcltk: multiple listboxes, selection"
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 -
2008 Nov 23
1
tklistbox - R-Objekt
Hello, I have a problem with a tklistbox. The user should be able to choose
one out of two calculation methods needed for further calculations. My
r-script for that purpose looks like that:
require(tcltk)
tt<-tktoplevel()
tl<-tklistbox(tt,height=4,selectmode="single",background="white")
tkgrid(tklabel(tt,text="select method for LAI
2001 Feb 22
2
Problem with tcltk listbox
Hi!
I've got two problems with listboxes and selection:
I created a listbox, no problem. Then I bind the Button-1 of the mouse to the listbox to start some things by pressing the mousebutton. The proiblem is that as I click a item of the listbox this error occured:
Error in .Tcl(.Tcl.args(...)) : [tcl] bad listbox index "": must be active, anchor, end, @x,y, or a number.
Repaeting
2007 Oct 08
3
tcltk scrollbar
The following code should give me (at least that's what I think) two list
boxes with their individual scrollbars. But instead both scrollbars stick to
the same listbox even though they work as they should (scroll individual
listboxes). When I remove all the widgets on top everything works perfectly.
Any help would be highly apprecciated.
ps: all subsequent listboxes and scrollbars work
2010 Jun 22
0
Scrolling a tkcanvas non-starter
Hello,
Is it possible to scroll a canvas that has a column of listboxes in it? Does scrolling only work with listboxes and text widgets?
The following code displays the scrollbar, but
- it has no thumb
- does not respond to mouse clicks.
- the vertical height of the tkcanvas (i.e. column1) is unconstrained. It's lower edge is out of view, and the lower button on the scrollbar is out of
2003 Jun 06
4
stuck tcltk scrollbars under Windows XP
Dear R-devel list members,
I've encountered a problem with my Rcmdr package under Windows XP and could
use some advice:
The Rcmdr package uses the tcltk package to create menus and dialog boxes.
My standard procedure when a dialog is created is to grab the focus -- e.g., by
tkfocus(top)
tkgrab(top)
(Here, top is a top-level window -- say, containing one or more
scrollbars.)
2008 Jul 22
1
tklistbox and extracting selection to R
Dear experts,
I am trying to understand why is it that when I paste (into the R console) the following code to select an option from a list:
require(tcltk)
tt<-tktoplevel()
tl<-tklistbox(tt,height=ntx,selectmode="single",background="white")
tkgrid(tklabel(tt,text="Select the legend of" ))
tkgrid(tl)
treatments<<-levels.tx
for(i in
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,...))
2005 Apr 01
0
Selections from tcltk list boxes
Dear r-devel list members,
I've experienced 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",
2006 Jun 21
0
Some R-Tcl/Tk-BWidget newbie questions.
Dear list,
Could somebody who is more experienced with the Tcl/Tk interface from R
please help me clarify the issues I've put below with ### --> tags?
Several things go wrong, and it's probably because of messy code, but I
have a difficult time finding out what is the cause.
Thanks very much,
JeeBee.
require(tcltk) || stop("Package tcltk is not available.")
# Add path to
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,
2003 Jul 30
1
Tktable White column when WIDTH>13
On Wed, 30 Jul 2003 TSudler at ch.imshealth.com wrote:
<SNIP>
table1 <- tkwidget(tt,"table",variable="tclArray",
rows=as.character(dim(datifram)[1]+1),
cols=as.character(dim(datifram)[2]),titlerows="1",
titlecols="3",selectmode="extended",height="27",
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'oh!)
Cheers!
Mark
--
I'm taking reality in
2011 Oct 06
0
initial value in ComboBox tkwidget
Hello,
I took me very long to find out how to set the initial value in the combobox
widget in tk (see the example below). My question is now : Why does
"textvariable" has to be a tclVar while "values" can be a normal vector? My
next question is: How could I have known this much earlier? Is there a
documentation for the tcl/tk usage in R? I know a lot of website with
example.
2010 Mar 01
0
Multicolumn Listbox selectcommand trouble
Hey folks,
This is my first message to the mailing list so please let me know if I
mess something up.
I'm trying to use the selectcommand for the mclistbox but I'm not very
adept at using functions. Ideally I'd like to change the editor text when
a different list item is selected but any help using the selectcommand
would be appreciated and I think I could get the rest working.
2007 May 13
1
Dropdown boxes in tcltk and R
Hello,
I'm very much a newbie in R and more so in tcltk so apologies if this
question is stupid. Basically I am trying to use the combobox example
found here:
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/DropDown.html .
What I want to do is in that example get fruitChoice as a variable in R
in general. When I run that code, however, and the ask for fruitChoice
it says
2006 May 22
1
rerender tcltk toplevel
Hi everybody,
I am trying to write a simple progress display based on a tcltk
toplevel. My first approach was to use the progressBar widget from the
BWidget library but since this is not available on every system (missing
on at least almost all windows systems, I guess...) I wanted to have a
backup there. So my second strategy was to use a simple toplevel with a
label and update the tclvariable
2008 Nov 03
1
possible tcltk event loop problem
Dear list members,
Rich Heiberger reported to me last week that the Messages window in the
Rcmdr GUI was freezing -- that is, messages posted to this window didn't
appear -- under Windows and R 2.8.0. I was able to confirm this problem on
three Windows systems, one using Vista and the other two XP. In each case, I
used R 2.8.0 and Rcmdr 1.4-4 (the current version). The problem doesn't
2007 Feb 16
0
R GUI programming
Hi, All:
I am having a problem with handling global variable value in GUI
programming, I hope R gurus can give me some advice on it.
What I want to do is to read in a dataset, display some information
based on the input and do some calculation on the dataset:
However, I am having trouble organizing my code, as the following code
goes, the comboBox section will have to be put
in the
2003 Apr 25
1
tcltk tkfilefind demo problem
Hi everyone,
I wonder if anybody observed the crash of the tkfilefind demo. I looked
into the code and it seems to crash executing
dirtree<-tkwidget(base, "hierarchy_dir",
root=path,
showparent="Parent",
showfiles=1,
showall=all.names,