Displaying 20 results from an estimated 1000 matches similar to: "Using Tk table widget to display matrix"
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
2004 Apr 23
4
Tcl Tk table
Hi
I've a problem with the following 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",
2003 Apr 24
3
R TclTk Examples
Hi,
I've been learning how to use R TclTk in Windows over the last
few months.
I have recently put together a collection of examples of
some common widgets and their corresponding R code, at
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/
I would be interested in any feedback - Is it useful? Does it
contain any significant errors or bad coding style? Does anyone
else want to
2005 Oct 27
1
tree widget question
I'm trying to create an app using TclTk and R
Can someone please explain how I bind a click event to the tree widget
(http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/TreeWidget.html)
Ideally I'd like to bind to particular elements in the tree but tkbind
doesnt seem to work.
thanks
tom
2009 Jul 09
1
Changing text in a tkentry widget
I searched the web and the list archives for a solution to this, but
didn't see anything, so here goes. I'm new to tcltk. I'm trying to
change the contents of a tkentry widget when a button is pressed. Once I
get that working, the widget will be read only to the user. Here is some
toy code:
###############
require(tcltk)
thisEnv=environment()
tt<-tktoplevel()
Name <-
2009 Sep 28
2
re trieve user input from an tcl/tk interface
Hello everyone,
this is my first post here and I hope I signed up correctly and someone will
take me by the hand and help me out. I am new to R and cannot figure out
what to do here...
... I want to have an User Interface that requests input. I want to save
this input to a variable to use it later on. I was able to do this with a
modalDiaglog (
2005 Jun 04
2
locator() via tcltk
Hello,
I'm trying to write a function using tcltk to interactively modify a plot
and gather locator() data. I've read Peter's articles in Rnews, the help
pages in tcltk, http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/,
plus a post in R-help sometime ago, but haven't found a solution.
The idea goes something like this:
require(tcltk)
testplot <- function() {
getcoords
2007 Jun 13
1
Offline ? Searching for James Wettenhall's TclTk Examples
Hi,
as a starting point for using Tcl/Tk in R, I used to refer
to James Wettenhall's nicely presented TclTk Examples
formerly hosted at
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/
These days I have been trying to reach these pages but without
success.
Does anyone know (James, himself, perhaps ;-) whether they
are / will be available at some other location --- it would
be a pity
2008 May 07
1
Aling elmentos into Windows with TK
Hello!!
I would like create a window that has diferent element as:
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/checkboxes.html
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/radiobuttons.html
I know as make it, but I don?t know as I could (align the diferent elemnts
to left, right, top, bottom) or (put in a coordinates into windows).
If anybody know as I could make it, I would
2005 Feb 04
1
Output from function to a tcltk window
I would like to display output to a tcltk window from e.g. a call to
summary().
I tried to get something else than oneliners into a text window of the
kind found at:
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/TextWindows.html
But without success.
Henrik
-------------------------------------------------------------
Henrik Andersson
Netherlands Institute of Ecology -
Centre for
2011 Jun 03
2
tkrplot Newbie
Hello,
I am trying to write a tcltk based program that plots/manipulates
xts/xoo time series objects.
I have the code I used from
## http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/tkrplot.html :
##
require(quantmod)
require(tcltk)
library(tkrplot)
Sys.setenv(TZ="GMT")
getSymbols("^GSPC", from = "1960-01-01")
Myhscale <- 2.5 # Horizontal scaling
2003 Sep 30
3
Adding Tk extensions to R for windows
Hi,
I'm developing an R/TclTk application which uses the BWidget and
Tktable Tk extensions and I'm trying to make it easy to install.
For now, I'm focusing on Windows users who start with nothing.
I have built Tcl/Tk and Tktable for windows using Msys/MinGW.
(BWidget contains only Tcl scripts so does not need building.)
I have then copied Tktable and BWidget into the lib subdirectory
2010 Jul 28
2
message box
Hi,
I need some help figuring out how to make a pop-up message box appear with
error messages when running a script using Rterm. Windows XP R2.10.1
...possibly with the ability to either continue or abort the script?
Thanks.
M
--
[[alternative HTML version deleted]]
2008 Jun 16
0
Display a jpeg inside a widget which already has text
Hi
I am trying to insert a jpeg into a widget I have created.
I have used this link
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/showImage.html to
display a jpeg inside a newly created widget but would like some info on how
to insert into a pre existing widget.
This is my code below for my first widget.
tt<-tktoplevel()
fontHeading2 <-
2006 Feb 02
2
Request for users of my R-Tcl/Tk examples, limmaGUI or affylmGUI
[PLEASE REPLY _OFF_ THE LIST, i.e. DON'T CC to r-help at ...]
Hi,
I don't see this sort of thing very often on the mailing lists, so list
moderators and others should feel free to tell me if it breaches list
etiquette and/or delete my post if necessary. But I can't see what harm
it could do...
I am just wondering approximately how many people use / have used some of
the R stuff
2006 Jul 05
1
tcl/tk with R
Greetings:
I would like to use tcl/tk with R, and have read "A Primer on the R-Tcl/Tk
Package" by Peter Dalgaard in Rnews, Volume 1/3, September 2001.
Are there more recent do-it-yourself instructions available?
I have been unsuccessful with the example in the tcltk2 package due to a
syntax error.
I think that I have isolated the problem to this code snippet:
for (i in
2008 Mar 18
3
Tcl/tk question
Dear R Gurus:
What is the name of the person who has all of the Tcl/tk stuff,
please? I know it's James W, but can't remember his last name.
I wanted to look at some of his examples.
Thanks in advance!
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
2003 Sep 05
1
Installing R on Red Hat Linux, Tcl/Tk
Hi,
I've been trying to install R on Red Hat Linux 9 for some
potential users of my R/TclTk application. I tried using the
rpm for R 1.7.1 for Red Hat Linux 9. It told me that I needed:
libtcl8.3.so
so I looked for a binary release of Tcl 8.3.x on
http://www.tcl.tk/software/tcltk/8.3.html
but found that the link to the Tcl 8.3.x binaries pointed to
ActiveTcl 8.4.x . I couldn't see
2007 Dec 28
4
Return Value of TCl/Tk window in R
Hello,
I have the TCl/Tk command
"tkmessageBox(titel="",message="x",icon="question",type="okcancel")" in my R
script. Now I want to perform some operation in relation to the user's
choice, something like
"if (okpressed) xxx else yyy"
What values does this command give and how are they used?
Thank you, Richard
--
Richard M?ller -
2004 Jun 08
1
Nested shared library calls in Linux
Hi,
I have an interface from R to the wxPython GUI toolkit which
works under Windows:
http://bioinf.wehi.edu.au/folders/james/wxPython/
(as long as you build RSPython with a shared (not static)
Python library).
But on Linux I get an error:
> library(RSPython)
> importPythonModule("wx")
Error in .PythonEval(cmd) : Error in Python call: