Hi Rodrigo,
Try to add tkgrid.configuration and change values as you want.
library(tcltk2)
win1 <- tktoplevel()
butOK <- tk2button(win1, text = "TEST", width = 77)
tkgrid(whiteSPACE, butOK, columnspan=2, padx=20, pady=10)
tkgrid.configure(butOK,rowspan=2,columnspan= 3,sticky="nsew")
Here is the d
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
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
Hello,
Somebody would indicate the correct way to use the option the
fontchooser widget into tcltk package (in R-devel, Tcl 8.6) ?
I tried to use as other traditional widgets but no success. (code below)
Thanks
Cleber
> tt <- tktoplevel(); but <- ttkbutton( tt, text='Test'); tcl('pack', but )
>
Hello,
Somebody would indicate the correct way to use the option the
fontchooser widget into tcltk package (in R-devel, Tcl 8.6) ?
I tried to use as other traditional widgets but no success. (code below)
Thanks
Cleber
> tt <- tktoplevel(); but <- ttkbutton( tt, text='Test'); tcl('pack', but )
>
Hello,
Somebody would indicate the correct way to use the option the
fontchooser widget into tcltk package (in R-devel, Tcl 8.6) ?
I tried to use as other traditional widgets but no success. (code below)
Thanks
Cleber
> tt <- tktoplevel(); but <- ttkbutton( tt, text='Test'); tcl('pack', but )
>
That was it. Thanks!
On Mon, Jan 21, 2013 at 11:21 AM, Milan Bouchet-Valat wrote:
> Le lundi 21 janvier 2013 à 10:32 +0100, Christoph Lange a écrit :
> > Dear all,
> >
> > please excuse the somewhat special question:
> >
> > >From within R I create a Tk windows with a list of checkboxes, which c
Le lundi 21 janvier 2013 à 10:32 +0100, Christoph Lange a écrit :
> Dear all,
>
> please excuse the somewhat special question:
>
> >From within R I create a Tk windows with a list of checkboxes, which can
> bekome too long for the screen. The obvious solution would be to put all
> checkboxes into
Dear all,
please excuse the somewhat special question:
>From within R I create a Tk windows with a list of checkboxes, which can
bekome too long for the screen. The obvious solution would be to put all
checkboxes into a frame and make that scrollable. Alas, there are (for
whatever reason!) no scr
very good idea!
thanks a lot.
Vincent
2012/11/20 Yves Reecht
> Hi Vincent,
>
> This is probably because Rcmdr redefine the tclvalue command (check the
> message frame of the Rcmdr window).
> You can try:
>
> tcltk::tclvalue(tkget(levels.list2,"4"))
>
> HTH,
> Yves
>
>
> Le 20/11/2012 11:25
Hi Vincent,
This is probably because Rcmdr redefine the tclvalue command (check the
message frame of the Rcmdr window).
You can try:
tcltk::tclvalue(tkget(levels.list2,"4"))
HTH,
Yves
Le 20/11/2012 11:25, vincent guyader a écrit :
> I everyone,
>
> i have a little problem with tklistbox,t
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,...))
levels.list2.s
Hi Elai and Peter,
thanks a lot for your suggestions. I am still reading your answers, but I
didn't get at the begining the difference between
c<-NULL
for (i in seq(3)) c[[i]]<-i
c
and the exempel with the tcl tk buttons. Now I think, it is clear. Its due
to the interaction between R and tcl. Th
On Fri, Feb 24, 2012 at 5:03 PM, peter dalgaard wrote:
>
>
> Now that's just weird... Firstly, it has nothing to do with sapply vs. for
> loops. It just works because you are inserting yet another function
> environment.
Thank you Peter, that makes more sense. As you can probably imagine,
first
On Feb 24, 2012, at 19:44 , ilai wrote:
> On Fri, Feb 24, 2012 at 12:58 AM, Alexander
> wrote:
>
>> I would like to know if its possible to use a function with arguments as a
>> command in tcl tk.
>
> Yes
>
>
> I think
>> this is due to the fact that the PressedOK(3) was the last call of th
On Fri, Feb 24, 2012 at 12:58 AM, Alexander wrote:
> I would like to know if its possible to use a function with arguments as a
> command in tcl tk.
Yes
I think
> this is due to the fact that the PressedOK(3) was the last call of the
> function, but I don't understand why all the other button
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
On 9/29/11 3:38 AM, "Alexander" wrote:
> Hello, I wanted to ask if there are any guidelines for Tcl/Tk programming in
> R ? I know that there are no strict rules concerning programing. But perhabs
> there are some useful tipps how to organise Tcl/Tk code in your R script. I
> want to programm a l
Hello, I wanted to ask if there are any guidelines for Tcl/Tk programming in
R ? I know that there are no strict rules concerning programing. But perhabs
there are some useful tipps how to organise Tcl/Tk code in your R script. I
want to programm a little GUI and I don't want to reprogram the whole
Hi,
> I think you'll need to post a complete example to illustrate the problem.
> I'd suggest posting it to the R-sig-mac list, since it seems to be a problem
> specific to that platform.
>
> Duncan Murdoch
ok, thank you. I will post it there.
Stefan Richter
_
Hi,
> On 11-02-27 7:31 AM, Stefan Richter wrote:
>> Hi,
>>
>> I have a tktoplevel window and in it a tkbutton:
>>
>> AUS<- function()
>> {
>> foo(parameters);
>> }
>> AUSButton.but<- tkbutton(tt,text="OK",command=AUS)
>>
>> The function foo(...) does a time-consuming calculation, and durin
On 11-02-27 10:09 AM, Stefan Richter wrote:
Hi,
On 11-02-27 7:31 AM, Stefan Richter wrote:
Hi,
I have a tktoplevel window and in it a tkbutton:
AUS<- function()
{
foo(parameters);
}
AUSButton.but<- tkbutton(tt,text="OK",command=AUS)
The function foo(...) does a time-consuming calcul
On 11-02-27 7:31 AM, Stefan Richter wrote:
Hi,
I have a tktoplevel window and in it a tkbutton:
AUS<- function()
{
foo(parameters);
}
AUSButton.but<- tkbutton(tt,text="OK",command=AUS)
The function foo(...) does a time-consuming calculation, and during this
calculation there is printe
Hi,
I have a tktoplevel window and in it a tkbutton:
AUS <- function()
{
foo(parameters);
}
AUSButton.but <- tkbutton(tt,text="OK",command=AUS)
The function foo(...) does a time-consuming calculation, and during this
calculation there is printed some progress information to the console.
Dear all,
I'm trying to run function "qvalue" that requires Tcl/Tk interface. But after
loaded the "tcltk" package, it would automatically launch "point-and-click"
that forces me to run analysis in a new window whenever I want to use the
function. I would be grateful if anyone knows how to rem
Look at the examples here:
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/
On Fri, Jun 19, 2009 at 5:21 AM, Abelian wrote:
> Dear All
> Due to develope some usful programe, we choose the R-GUI be our
> program interface. By the way, i study about userguide of tcl/tk in
> help, but i think th
Dear All
Due to develope some usful programe, we choose the R-GUI be our
program interface. By the way, i study about userguide of tcl/tk in
help, but i think that the help article in R is not clear. For
example, when i confuse about some usages and i want to know how to
use, i will search on help.
The example for learning tcl/tk under R at
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/OKtoplevel.html
suggests running it from batch - but when I do, the window flashes by and
the example ends. I'm under XP pro. Is there a workaround? Should I create a
modal window instead so it persists
Em Sex, 2008-08-08 às 13:27 -0400, Michael Gormley escreveu:
> In trying to install the pbatR package, I was greeted with the error
>
> Error: package 'tcltk' does not have a name space
> Execution halted
>
> Directly installing the package tcltk2 returned the following error:
>
> Loading requir
>>
>>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> On Behalf Of Michael Gormley
>> Sent: Friday, August 08, 2008 1:29 PM
>> To: r-help@r-project.org
>> Subject: [R] Tcl\tk not supported on this system
>>
In trying to install the pbatR package, I was greeted with the error
Error: package 'tcltk' does not have a name space
Execution halted
Directly installing the package tcltk2 returned the following error:
Loading required package: tcltk
Error in firstlib(which.lib.loc, package) :
Tcl/Tk
on 08/08/2008 02:05 PM Marc Schwartz wrote:
on 08/08/2008 01:25 PM Michael Gormley wrote:
On Fri, Aug 8, 2008 at 2:23 PM, Michael Gormley
<[EMAIL PROTECTED]>wrote:
Thanks for your prompt responses. I will take a look at the R
Installation
and Administration manual. Where can I obtain the tcl
on 08/08/2008 01:25 PM Michael Gormley wrote:
On Fri, Aug 8, 2008 at 2:23 PM, Michael Gormley
<[EMAIL PROTECTED]>wrote:
Thanks for your prompt responses. I will take a look at the R Installation
and Administration manual. Where can I obtain the tcl-devel and tk-devel
files?
Thanks,
Mike
Th
---
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Gormley
Sent: Friday, August 08, 2008 1:29 PM
To: r-help@r-project.org
Subject: [R] Tcl\tk not supported on this system
trying to install the pbatR package, I was greeted with the
error
Error: package 'tcltk' does not h
__
>>> Patrick Richardson
>>> Biostatistician - Laboratory of Translational Medicine
>>> Van Andel Research Institute
>>> Grand Rapids, MI 49503
>>> ph. 616-234-5787
>>>
>>>
>>>
>>>
>>> -Original Message-
>>>
rmley
Sent: Friday, August 08, 2008 1:29 PM
To: r-help@r-project.org
Subject: [R] Tcl\tk not supported on this system
trying to install the pbatR package, I was greeted with the error
Error: package 'tcltk' does not have a name space
Execution halted
Directly installing the package
Hi,
have a look here:
http://tolstoy.newcastle.edu.au/R/e4/help/08/07/17379.html
Hope this helps,
Roland
Michael Gormley wrote:
trying to install the pbatR package, I was greeted with the error
Error: package 'tcltk' does not have a name space
Execution halted
Directly installing the packag
Institute
Grand Rapids, MI 49503
ph. 616-234-5787
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Gormley
Sent: Friday, August 08, 2008 1:29 PM
To: r-help@r-project.org
Subject: [R] Tcl\tk not supported on this system
trying to install the pbatR
trying to install the pbatR package, I was greeted with the error
Error: package 'tcltk' does not have a name space
Execution halted
Directly installing the package tcltk2 returned the following error:
Loading required package: tcltk
Error in firstlib(which.lib.loc, package) :
Tcl/Tk sup
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 Mathematica
Philip Grosjean maintains the examples. You can find
them on his site now:
http://www.sciviews.org/_rgui/tcltk
On Tue, Mar 18, 2008 at 7:27 PM, Erin Hodgess <[EMAIL PROTECTED]> wrote:
> Dear R Gurus:
>
> What is the name of the person who has all of the Tcl/tk stuff,
> please? I know it's James
4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> project.org] On Behalf Of Erin Hodgess
> Sent: March-18-08 7:28 PM
> To: r-help@r-project.org
> Subject: [R] Tcl/tk question
>
> Dear R
Hi,
I'm just a newbie, but I don't mind stealing the gurus' thunder. Try
RSiteSearch("Tcl/tk James") - it brings up a number of posts authored
by a James W.
Cheers,
Ben
On Mar 18, 2008, at 7:27 PM, Erin Hodgess wrote:
> Dear R Gurus:
>
> What is the name of the person who has all of the Tcl
Whoops! I found it...James Wettenhall.
sorry for the trouble.
erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]
__
R-help@r-project.org mailing list
h
Hi Aaron:
Look at:
http://article.gmane.org/gmane.comp.lang.r.mac/2305
Do take time to read the R Posting FAQ. A query to the mail-list
archive would have shown that this problem has been discussed
repeatedly.
HTH,
-Roy M.
On Mar 6, 2008, at 9:34 AM, Aaron Solomon Adelman wrote:
> Greet
Greetings.
Yesterday I decided to try out Rcmdr, but it refused to load. I
traced the problem to the library tcltk, which when I tried to load it
told me this:
> > library(tcltk)
> Loading Tcl/Tk interface ... Error in fun(...) :
> Can't find a usable init.tcl in the following directories:
46 matches
Mail list logo