Displaying 20 results from an estimated 1000 matches similar to: "Tcl/tk"
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 Aug 31
1
tcl/tk return problem
Hello,
I'm very new in working with tcl/tk in R and have a problem which will
probably
sound silly to most of you.
Here is the code I have problems with:
readcelfiles <- function()
{
require(tcltk)
tt <- tktoplevel()
tkgrid(tklabel(tt,text="Choose a directory!"))
OnOK <- function()
{
fileDir<-tclvalue(tkchooseDirectory())
data.raw <-
2006 Oct 23
1
R tcl/tk
Friends:
I am a long-time R user, learning tcl/tk, and am tying myself in knots over
something that should be simple.
I want to create a frame and put that frame inside the toplevel frame.
This works (i.e. it places text in col 1, and the corresponding entry box in
column 2) and later frame.2 resides where it should in the toplevel frame.
tkgrid(tklabel(frame.2, text="FACTOR column
2023 Mar 13
1
tcl tk: set the position button
Dear Rodrigo,
Try tkwm.geometry(win1, "-0+0"), which should position win1 at the top
right.
I hope this helps,
John
--
John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
web: https://socialsciences.mcmaster.ca/jfox/
On 2023-03-12 8:41 p.m., Rodrigo Badilla wrote:
> Hi all,
> I am using tcltk2 library to show buttons and messages. Everything
> work
2012 Feb 24
1
tcl tk command function with arguments ??
Hello, I am using R 2.11.1 under Windows XP.
I would like to know if its possible to use a function with arguments as a
command in tcl tk. For example
require(tcltk)
PressedOK <- function()
{
tkmessageBox(message="You pressed OK!")
}
tt <- tktoplevel()
OK.but <- tkbutton(tt,text="OK",command=PressedOK)
tkgrid(OK.but)
tkfocus(tt)
the function PressedOK has no
2012 Jul 16
2
Tk grid problem
Hi everybody,
I have a problem with the grid function in tk.
I juste try to put 4 buttons like this:
-------------------
| | |
| | C |
| A |--------|
| | |
---------- D |
| | |
| B | |
-------------------
A is 2x2
C is 1x2
B is 1x2
D is 2x2
but the code bellow dont work :
require(tcltk)
tt <-
2023 Mar 13
1
tcl tk: set the position button
Hi all,
I am using tcltk2 library to show buttons and messages. Everything
work fine but I would like set the tk2button to the right of my screen, by default it display at the left of my screen.
my script example:
library(tcltk2) win1 <- tktoplevel() butOK <- tk2button(win1, text = "TEST", width = 77) tkgrid(butOK)
Thanks in advance
Saludos
Rodrigo?
--
Este correo electr?nico ha
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,...))
2008 Jul 18
0
Retrieving data from a tcl /tk function
Hello,
I am sorry if this is an answered question, but I did my homework for a long while and couldn't figure out a way to retrieve data entry from a model dialog. In one of the examples compiled by James Wettenhall:
odalDialog <- function(title, question, entryInit, entryWidth = 20,
returnValOnCancel = "ID_CANCEL") {
dlg <- tktoplevel()
tkwm.deiconify(dlg)
2005 Feb 28
1
Getting width of Tk text widget via tcltk
Dear list members,
Is it possible via a suitable tcltk command to get the *current* width, in
characters, of a Tk text widget that has been resized with the mouse? In the
following code, the reported width of the text widget doesn't change, even
though it has been resized. I can, however, get the current width in pixels:
> library(tcltk)
> top <- tktoplevel()
> textWindow <-
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
2003 Oct 31
4
Array Dimension Names
I would like to reference array dimensions by name in an apply and a summary
function. For example:
apply(x, "workers", sum)
Is there a better way to do this than creating a new attribute for the array
and then creating new methods for apply and summary? I don't want to name
the individual elements of each dimension (such as with dimnames) but rather
name the dimensions. Thanks
2002 Feb 11
0
read.table in TCL/TK interface
hello,
i would like program userfriendly tcl/tk widgets like
the t-test example in a more complex way !
(1) Is it not possible to combine tk_getOpenFile with
the R function read.table to select in userfriendly way data sets ?
(I'm newbie and take code-parts from t-test example and scripting example.)
(2) Is it possible to use a variableSelection widget
to select a special variable which i
2003 Jun 09
2
ESRI shapefiles and EMME/2 packages
I just uploaded two packages to CRAN.
shapefiles_0.1.tar.gz - functions to read and write ESRI shapefiles
(including dbfs)
emme2_0.1.tar.gz - functions to read binary data from an EMME/2 databank
data (EMME/2 is a transportation modeling program)
Please let me know if you find any bugs or have some suggestions. Thanks.
Regards,
Benjamin Stabler
Transportation Planning Analysis Unit
Oregon
2004 Aug 05
1
R interface to Python (in Windows)
I put a copy of R 1.8.1 for Windows on our FTP site at:
ftp://ftp.odot.state.or.us/outgoing/Test/. It should be there for a few
days before it gets deleted.
Benjamin Stabler
Transportation Planning Analysis Unit
Oregon Department of Transportation
555 13th Street NE, Suite 2
Salem, OR 97301 Ph: 503-986-4104
-----Original Message-----
From: Peter Wilkinson [mailto:pwilkinson at videotron.ca]
2005 Apr 23
1
tclServiceMode: stop Tcl/Tk from updating
In Windows, Tcl/Tk programs running under the tcltk package can update
too frequently: for exmaple, we might go through a long sequence of
operations to construct a complex display, and in Windows each addition
will be shown separately.
To work around this, I've added a function "tclServiceMode" which serves
as an R interface to the "Tcl_SetServiceMode" function in the
2004 Mar 10
2
Rcmd BATCH command line arguments
I want to run Rcmd BATCH with R_DEFAULT_PACKAGE=base so it doesn't load any
packages, but it seems to reject this argument because it does not start
with a '-' or '--'. Is there a different argument that will work? Thanks.
Benjamin Stabler
Transportation Planning Analysis Unit
Oregon Department of Transportation
555 13th Street NE, Suite 2
Salem, OR 97301 Ph: 503-986-4104
2003 Jul 23
2
paste and NAs
I understand how R treats NAs but in the situation below it would be nice to
have a na.skip argument to paste so it does not convert the NAs to "NA"s and
simply skips those elements of the vector for pasting.
> x
[1] "2.13" "2.3" NA NA "2.83" NA
> paste(x, "0", sep="")
[1] "2.130" "2.30"
2003 Apr 25
2
Open an r+b file connection on Windows
I am trying to open an existing binary file, seek to a position in the
middle, and then write one byte, while keeping the already existing data
after that byte. It seems to me that I am unable to open a connection to a
binary file in both read and write mode. I can open the "r+b" binary file
connection and seek around, but I can't write to the file. And looking at
the function
2010 Jul 21
1
tcltk resizing when using tkgrid for layout
I've been able to figure out on my own how to do what I need in the
largely undocumented tcltk package, but I've finally hit a wall. I can't
even think of any sufficiently specific search terms to use for this.
I'm trying to make the widgets in my tk window resize when the window is
resized by clicking and dragging on its corners or edges. Instead they
stay exactly where they