Displaying 20 results from an estimated 28 matches for "tkentry".
Did you mean:
gtkentry
2012 May 24
3
set tkscale by tkentry
Hi, I am working under Windows and I am using R2.11
I want to use tkscale in my GUI. As the interval is quite big, I can't set
the scale to a certain specific value. Therefore I want to add tkentry to
allow the user to set tkscale to a certain value.
Here is the code
library(tcltk)
tt<-tktoplevel()
tkpack(m1<-tkscale(tt,from=306870.00, to=3026741, label="alpha",
variable="varalpha",showvalue=TRUE, resolution=1,
orient="horiz"),side="bottom")
tk...
2006 Mar 07
2
Building tkentry dynamicly
Dear R-users,
I would like to build N "tkentry" compounds in the same window, with
default text for each. As N is variable I need to construct them in an
iterative way :
library(tcltk)
main<-tktoplevel()
tktitle(main)<-"My Tool"
filenames<-c("toto","tata","titi")
N<-length(filenames)...
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 <- tclVar("Anonymous")
entry.Name <-tkentry(tt,width="20",textvariabl...
2008 Aug 11
3
tkentry that exits after RETURN?
...ssed around
a little with validate, validatecommand, but don't
see any obvious way to do it ...
getPassword <- function(){
require(tcltk)
tt <- tktoplevel()
pass=tclVar("")
label.widget <- tklabel(tt, text="Enter Password")
password.widget <- tkentry(tt,show="*",textvariable=pass)
ok <- tkbutton(tt,text="OK",default="active",
command=function()tkdestroy(tt))
tkpack(label.widget, password.widget,ok)
tkwait.window(tt)
return(tclvalue(pass))
}
thanks
Ben Bolker
-------...
2007 Aug 14
2
Question about unicode characters in tcltk
...nd the 1 and 2 subscripts, but it
won't create the 0. Is there a certain set of characters that R won't
recognize the unicode for? Or am I input the \u2080 incorrectly?
library(tcltk)
m <-tktoplevel()
frame1 <- tkframe(m)
frame2 <- tkframe(m)
frame3 <- tkframe(m)
entry1 <- tkentry(frame1,width=5,bg='white')
entry2 <- tkentry(frame2,width=5,bg='white')
entry3 <- tkentry(frame3,width=5,bg='white')
tkpack(tklabel(frame1,text='\u03bc\u2080'),side='left')
tkpack(tklabel(frame2,text='\u03bc\u2081'),side='left')
tkpack(...
2007 Jan 01
0
autofill for a tkentry field
Hello all,
I'm experimenting with tlk/tk and I find it very useful. I would like to
have the text of a tkentry be automatically filled when the user starts
typing, according to a predetermined list. I've found a solution on the
tcl wiki pages, but I don't quite know how to translate it in R... Here is
the tcl code: http://wiki.tcl.tk/13267
And here is my code that does not work.
autofill <- f...
2005 Nov 18
0
Problems with tkentry
Hello to all,
I don't know almost nothing about Tcl/TK. I have the follow code:
>Name <- tclVar("")
>insert.Name <-tkentry(window1,width="20",objectvariable=Name)
>tkplace(tklabel(window1,text=" Enter the matrix name:"),x=0,y=0)
>tkplace(insert.Name,x=175,y=0)
So, I need to pass the variable Name like parameter in R function.
Ex:
>print(Name)
>"iris[,1:4]"
>dist(Name)
>...
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello,
On Mac OS X, certain Aqua/Quartz UI functionality requires an
application to be launched from within an app bundle, or
(alternatively) requires a Carbon application with a resource fork.
Playing with the wxWidgets distribution, I discovered that it is quite
easy and transparent to make such a Carbon app from (I guess) any
command line application. When applied to the R executable called
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello,
On Mac OS X, certain Aqua/Quartz UI functionality requires an
application to be launched from within an app bundle, or
(alternatively) requires a Carbon application with a resource fork.
Playing with the wxWidgets distribution, I discovered that it is quite
easy and transparent to make such a Carbon app from (I guess) any
command line application. When applied to the R executable called
2009 Sep 28
2
re trieve user input from an tcl/tk interface
...-------------
OnOK = function(){
# I reckon this is where the important stuff should happen...
tkdestroy(tt)
}
require(tcltk)
tclRequire("BWidget")
tt = tktoplevel()
trials = tclVar("100") # I want to suggest default values but they
should be editable.
entry.trials = tkentry(tt, width = "3", textvariable = trials)
tkgrid(tklabel(tt,text="Number of trials:"))
tkgrid(entry.trials)
Stimuli = tclVar("10") # I want to suggest default values but they
should be editable.
entry.Stimuli = tkentry(tt, width = "3", textvariable = St...
2010 Aug 05
1
Error in as.environment(pos): using 'as.environment(NULL)' is defunct
....2.4.
I hope the given informations are enough (it?s my first entry here)
The as.environment(pos) error appears in using the following code which
should open a function in an other R-file.
Here some extractions of the code:
....
HZ<-tclVar(seq(length=a,from=1,by=0)) #(a is defined by a
tkentry-element)
VZ<-tclVar(seq(length=a,from=1,by=0))
Aktivit?t<-tclVar(seq(length=a,from=1,by=0))
VKG<-tclVar(3)
Zugeh?rigkeit is a matrix.
#The values can be changed by a tkentry-element.
handler.Berechnung<-function() {
tkconfigure(Ergebnisfenster,
textvariable=tclVar(test2(as.nume...
2006 Oct 23
1
R tcl/tk
...ld 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 "), tkentry(frame.2,
textvariable=FACTOR.column.value, width=2), sticky="e")
This doesn't work because I don't know how to tell tcl that answer.button1
belongs in frame2:
tkconfigure(answer.button1, variable=buttonValue, value="TRUE")
tkgrid(tklabel(frame.2, text="Question...
2005 Oct 24
1
tk problem with R 2.2.0 on wine/linux
...~~~~~~
Type <Return> to start :
> require(tcltk) || stop("tcltk support is absent")
[1] TRUE
> require(stats)
[1] TRUE
> local({
dialog.t.test <- function() {
tt <- tktoplevel()
tkwm.title(tt, "t test")
x.entry <- tkentry(tt, textvariable = xvar)
y.entry <- tkentry(tt, textvariable = yvar)
alt <- tclVar("two.sided")
d .... [TRUNCATED]
******************************************************
The source for this demo can be found in the file:
C:/PROG~FBU/R/R-2_~MVR.0/librar...
2008 Mar 31
2
tkconfigure throws an error
...ng to assign a script to
a button
please help:
############
library(tcltk)
tt<- tktoplevel()
tktitle(tt)<-"the title"
heading<-tklabel(tt,text="Enter date as YYYY-MM-DD")
l1<-tklabel(tt,text="Reporting date")
b1=tkbutton(tt,text="Run")
d.val<-tkentry(tt,width=12)
tkgrid(heading,columnspan=2)
tkgrid(l1,d.val)
tkgrid(b1,columnspan=2)
tkconfigure(b1,command=source("./src/f.imm2.R"))
#########
and get inconsistent errors:
1. Error in structure(.External("dotTclObjv", objv, PACKAGE =
"tcltk"), class = "tclObj"...
2004 May 10
1
question about possibility with R - Tcl/tk library
Hi , i am using the R(1.8.1) tcl/tk library in order to build a graphical
user interface to mathematic function and i would like to know if it is
possible to retrieve the value of a tkentry to make a R vector
for exemple with an entry containing "1,2,3,4,5" i want to make a vector
which contains 1 2 3 4 5
i tried as.vector , as.list and even to write the object to a file with
write.table and then re reading it with read.table(...,sep=",")
but nothing worked
so...
2001 Oct 06
1
tcltk
...gPoint for me ?
thanks for advance &
regards,christian
require (tcltk) || stop("tcltk support is absent")
require(cluster)
require(mva)
require(foreign)
local ({
dialog.fc <- function() {
tt <- tktoplevel()
tkwm.title(tt,"Fuzzy-ClusterAnalysis")
cdata.entry <- tkentry(tt,textvariable="cdata")
k.entry <- tkentry(tt,textvariable="k")
reset <- function () {
tclvar$cdata <- ""
tclvar$k <- ""
}
reset.but <- tkbutton(tt,text="Reset", command=reset)
submit.but <- tkbutton(tt,text="...
2012 May 03
2
Help with readBin
I'm trying to read a binary file created by a fortran code using readBin
and readChar. Everything reads fine (integers and strings) except for
double precision numbers, they are read as huge or very small number
(1E-250,...). I tried various endianness, swap, But nothing has worked so
far.
I also tried on R 64 bit for linux and windows (R 2.14) and R 2.11 on
windows XP 32 bit.
Any help would
2002 Jul 06
1
R: one-sample binomial test
try
?power.prop.test
> -----Messaggio originale-----
> Da: Tim Wilson [mailto:wilson at visi.com]
> Inviato: sabato 6 luglio 2002 6.05
> A: R-help
> Oggetto: [R] one-sample binomial test
>
>
> Hi everyone,
>
> Here's how I solved a problem for my stats class. I'm pretty sure I
> understand what's going on, but I wonder if there's a more
>
2006 Mar 08
0
survival
...h
You can reach the person managing the list at
r-help-owner at stat.math.ethz.ch
When replying, please edit your Subject line so it is more specific
than "Re: Contents of R-help digest..."
Today's Topics:
1. Constrained linear least squares (Domenico Vistocco)
2. Building tkentry dynamicly (a.menicacci at fr.fournierpharma.com)
3. (newbie) Accessing the pieces of a 'by' object (Vivek Satsangi)
4. POSIX time zone codes (Jason Horn)
5. Re: (newbie) Accessing the pieces of a 'by' object
(Gabor Grothendieck)
6. Re: Building tkentry dynamicly (P...
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