search for: tkwidget

Displaying 20 results from an estimated 55 matches for "tkwidget".

Did you mean: gtkwidget
2011 Oct 06
0
initial value in ComboBox tkwidget
.... But the documentation is not very complet. Any tipps? require(tcltk) tclRequire("BWidget") tt <- tktoplevel() tkgrid(tklabel(tt,text="What's your favorite fruit?")) fruits <- c("Apple","Orange","Banana","Pear") comboBox <- tkwidget(tt,"ComboBox",editable=TRUE,values=fruits,textvariable=tclVar("Banana")) tkgrid(comboBox) OnOK <- function() { fruitChoice <- fruits[as.numeric(tclvalue(tcl(comboBox,"getvalue")))] tkdestroy(tt) msg <- paste("Good choice! ",fruitChoice,&...
2007 Sep 20
1
packages MANOR, qvalue, and tkWidgets fail install on Fedora 7 with latest R-beta build
...us 2: In install.packages(update[instlib == l, "Package"], l, contriburl = contriburl, : installation of package 'qvalue' had non-zero exit status 3: In install.packages(update[instlib == l, "Package"], l, contriburl = contriburl, : installation of package 'tkWidgets' had non-zero exit status > sessionInfo() R version 2.6.0 beta (2007-09-18 r42895) i686-pc-linux-gnu locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHON...
2004 Mar 27
3
availability of version 1.9.0?
Dear R People: When will version 1.9 (for Windows) be ready, please? My reason for asking: there is an interesting library from Bioconductor called tkWidgets. However, it will only work with version 1.9.0 or higher. Are there ways around this, or should I just be patient? Thanks so much in advance! Sincerely, Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgess at gator.u...
2020 Jun 07
7
use of the tcltk package crashes R 4.0.1 for Windows
Hi, The following code, from the examples in ?TkWidgets , immediately crashes R 4.0.1 for Windows: --------------------- snip -------------------- library("tcltk") tt <- tktoplevel() label.widget <- tklabel(tt, text = "Hello, World!") button.widget <- tkbutton(tt, text = "Push", command = function()cat("O...
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", width="13",bg="white",state="disabled"...
2009 Jun 11
0
Problem with tabbed notebook (tcltk, Iwidgets)
...ng to execute an example using tabnotebook from iwidgets. Unfortunately I get a problem as you can see bellow: > library(tcltk) Loading Tcl/Tk interface ... done > library(tkrplot) > tclRequire("Iwidgets") <Tcl> 4.0.1 > > tt <- tktoplevel() > tkpack(tn <- tkwidget(tt, "iwidgets::tabnotebook")) *** caught segfault *** address 0xffffffb8, cause 'memory not mapped' Traceback: 1: .External("dotTclObjv", objv, PACKAGE = "tcltk") 2: structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = &q...
2004 Nov 26
2
Tcl error - brace in argument?
Hi all, Does anyone know a solution for this error ? > tkwidget(dlg, "iwidgets::spinint", range="{0 23}") Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj") : [tcl] wrong # args: should be ".31.1.19 configure -range {begin end}". Thanks, Matthew [[a...
2006 Oct 21
0
tcltk: multiple listboxes, selection
...other* listboxes is cleared! Anybody knows how I can prevent this? Here's my code (sorry not complete): (E.g. If I select an X value, I'd lose the Y value I selected before) gui.create.tab.general <- function(tt) { # Network topology frame.1 <- tkframe(tt) combo_topology <- tkwidget(frame.1, "ComboBox", values = infras, editable = FALSE) tcl(combo_topology, "setvalue", "first") tkgrid(tklabel(frame.1, text="Network topology"), combo_topology) tkgrid(frame.1, sticky = "w") # X values frame.x <- tkwidget(tt, &quo...
2009 Jun 12
0
Problem with tabbed notebook (tcltk, Iwidgets)
...ng to execute an example using tabnotebook from iwidgets. Unfortunately I get a problem as you can see bellow: > library(tcltk) Loading Tcl/Tk interface ... done > library(tkrplot) > tclRequire("Iwidgets") <Tcl> 4.0.1 > > tt <- tktoplevel() > tkpack(tn <- tkwidget(tt, "iwidgets::tabnotebook")) *** caught segfault *** address 0xffffffb8, cause 'memory not mapped' Traceback: 1: .External("dotTclObjv", objv, PACKAGE = "tcltk") 2: structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = &q...
2004 Apr 23
4
Tcl Tk table
...wing example: library(tcltk) .Tcl("array unset tclArray") myRarray <- matrix(1:1000, ncol=20) for (i in (0:49)) for (j in (0:19)) .Tcl(paste("set tclArray(",i,",",j,") ",myRarray[i+1,j+1],sep="")) tt<-tktoplevel() table1 <- tkwidget(tt,"table",variable="tclArray", rows="50", cols="50") tkpack(table1) #Old version which worked in R 1.6 but it doesn't work with R 1.9 (and also not with 1.8), why?? tkcmd(.Tk.ID(table1),"tag","celltag","gruen",list(c(&quot...
2005 Jul 30
2
Premature termination of script
...rly new to R and I am writing a script that would take a file, as an input, and generates a bunch of graphs out of it. My first task is to be sure that the file is of the right type by looking if there is a valid barcode in it as in (the barcode is beetween a double and single underscore): library(tkWidgets) ############## #Loading a file #testing if valid if not kill the execution ############## data.file <- fileBrowser(textToShow="Select a splice junction array extraction file") if ( t <- regexpr("__\\d*_",data.file, perl=T) == -1){ cat ("The selected file does n...
2003 Mar 27
0
R TclTk iwidgets::combobox
Thanks Peter, I've started a new R session (in Windows) and managed to get both ways working now : ### THIS WORKS !!! ### library(tcltk) tclRequire("IWidgets") tt<-tktoplevel() combo <- tkwidget(tt,"iwidgets::combobox") tkpack(combo) ### AND THIS WORKS TOO !!! ### tt<-tktoplevel() win <- .Tk.subwin(tt) .Tcl(paste("iwidgets::combobox",.Tk.ID(win),.Tcl.args())) tkpack(win) But they both fail in my old R session - maybe I've tclRequired another package or load...
2003 Apr 17
1
Help with TCL packages
....3). For example : > addTclPath("C:/TCL/lib/bwidget1.5") > tclRequire("BWidget") <Tcl> 1.5 Loading seems to work, but when I try to create a specific widget : # The main window appears correctly > top=tktoplevel() # Trying to insert a combobox > combo <- tkwidget(top,"BWidget::combobox") Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class = "tclObj") : [tcl] invalid command name "BWidget::combobox". The file combobox.tcl is present in the BWidget directory. I wonder what I'm...
2006 Jun 21
0
Some R-Tcl/Tk-BWidget newbie questions.
...ts addTclPath(".") version.BWidget <<- tclvalue(tclRequire("BWidget")) start.gui <- function() { # Toplevel tt <- tktoplevel() tkwm.title(tt, "MyTitle") # Notebook ### --> The following line makes R hang with 100% cpu forever #tkpack(tn <- tkwidget(tt, "NoteBook"), fill="both", expand=TRUE) ### --> This works, but not sticky="news", ### --> the notebook does not resize together with the window tn <- tkwidget(tt, "NoteBook") tkgrid(tn, sticky="news") ### --> I guess there is a...
2007 May 13
1
Dropdown boxes in tcltk and R
...vel it. I've tried something like this to no avail. require(tcltk) tclRequire("BWidget") tt <- tktoplevel() tkgrid(tklabel(tt,text="What's your favorite fruit?")) fruits <- c("Apple","Orange","Banana","Pear") comboBox <- tkwidget(tt,"ComboBox",editable=FALSE,values=fruits) tkgrid(comboBox) OnOK <- function() { tkdestroy(tt) msg <- paste("Good choice! ",fruitChoice,"s are delicious!",sep="") tkmessageBox(title="Fruit Choice",message=msg) } OK.but <-tkbu...
2003 Jan 16
2
Built-in R GUI type features
All: The select.list() command brings up a "modal dialog box with a (scrollable) list of items ..." etc. -- i.e., a GUI control. I also know about winDialog, file.choose and the winMenu commands. What other such GUIisms are built into ** base ** R (I know about the tcltk package)? Or, better yet, how can I search on or list them? Many thanks. Bert Gunter Biometrics Research RY 84-16
2009 Jan 20
1
tclarray with embedded spaces in data
I would like to use a tclArray: mytkarray <- tclArray() as the variable for a table: table1 <- tkwidget(f1, 'table', variable= mytkarray) but if I include character strings with embedded spaces, I get braces appearing in the table. I can remove them using a non-R tclarray, (the difference between the first example of http://www.sciviews.org/_rgui/tcltk/Tktable.html and http://bioinf.wehi...
2020 Jun 07
5
use of the tcltk package crashes R 4.0.1 for Windows
...goes out of scope with the for loop). -pd > On 7 Jun 2020, at 16:00 , Jeroen Ooms <jeroenooms at gmail.com> wrote: > > On Sun, Jun 7, 2020 at 3:13 AM Fox, John <jfox at mcmaster.ca> wrote: >> >> Hi, >> >> The following code, from the examples in ?TkWidgets , immediately crashes R 4.0.1 for Windows: >> >> --------------------- snip -------------------- >> library("tcltk") >> tt <- tktoplevel() >> label.widget <- tklabel(tt, text = "Hello, World!") >> button.widget <- tkbutton(tt, text...
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, selectmode=if(multiple) "multiple" else "browse...
2004 Dec 28
1
win variable in tcltk
The following gives an error message: library(tcltk) win <- list(env="A") tt <- tktoplevel() but <- tkbutton(tt, text="X", command=expression(tkdestroy(tt))) tkgrid(but) however, if one comments out the win line (and removes the win variable) then it works. It seems that tcltk is making use of a variable called win with a component name of env and I just happened