Re: [R] tcl tk: set the position button

2023-03-14 Thread Karim Mezhoud
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

Re: [R] tcl tk: set the position button

2023-03-13 Thread John Fox
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

[R] tcl tk: set the position button

2023-03-13 Thread Rodrigo Badilla
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

[R] tcl('tk::fontchooser', 'show') : How to use? R-devel Tcl 8.6

2016-11-13 Thread Cleber N.Borges
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 ) >

[R] tcl('tk::fontchooser', 'show') : How to use? R-devel Tcl 8.6

2016-11-06 Thread Cleber N.Borges
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 ) >

[R] tcl('tk::fontchooser', 'show') : Hoe to use? R-devel Tcl 8.6

2016-11-05 Thread Cleber N.Borges
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 ) >

Re: [R] R Tcl/Tk: How to put widgets in text widget?

2013-01-21 Thread Christoph Lange
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

Re: [R] R Tcl/Tk: How to put widgets in text widget?

2013-01-21 Thread Milan Bouchet-Valat
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

[R] R Tcl/Tk: How to put widgets in text widget?

2013-01-21 Thread Christoph Lange
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

Re: [R] tcl/tk problem with tklistbox,the " " character and Rcmdr.

2012-11-20 Thread vincent guyader
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

Re: [R] tcl/tk problem with tklistbox,the " " character and Rcmdr.

2012-11-20 Thread 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, vincent guyader a écrit : > I everyone, > > i have a little problem with tklistbox,t

[R] tcl/tk problem with tklistbox,the " " character and Rcmdr.

2012-11-20 Thread vincent guyader
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

Re: [R] tcl tk command function with arguments ??

2012-02-27 Thread Alexander
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

Re: [R] tcl tk command function with arguments ??

2012-02-24 Thread ilai
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

Re: [R] tcl tk command function with arguments ??

2012-02-24 Thread peter dalgaard
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

Re: [R] tcl tk command function with arguments ??

2012-02-24 Thread ilai
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

[R] tcl tk command function with arguments ??

2012-02-24 Thread Alexander
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

Re: [R] Tcl/Tk Guidelines

2011-09-29 Thread Roebuck,Paul L
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

[R] Tcl/Tk Guidelines

2011-09-29 Thread Alexander
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

Re: [R] R Tcl/Tk [MacOSX] TkButton Problem

2011-02-27 Thread Stefan Richter
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 _

Re: [R] R Tcl/Tk [MacOSX] TkButton Problem

2011-02-27 Thread 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

Re: [R] R Tcl/Tk [MacOSX] TkButton Problem

2011-02-27 Thread Duncan Murdoch
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

Re: [R] R Tcl/Tk [MacOSX] TkButton Problem

2011-02-27 Thread Duncan Murdoch
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

[R] R Tcl/Tk [MacOSX] TkButton Problem

2011-02-27 Thread Stefan Richter
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.

[R] Tcl/Tk interface - autolaunch point-and-click problem

2010-08-18 Thread Joanna Zhuang
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

Re: [R] Tcl/TK

2009-06-19 Thread Gabor Grothendieck
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

[R] Tcl/TK

2009-06-19 Thread Abelian
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.

[R] tcl/tk example in batch

2008-08-13 Thread David Katz
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

Re: [R] Tcl\tk not supported on this system

2008-08-11 Thread Bernardo Rangel Tura
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

Re: [R] Tcl\tk not supported on this system

2008-08-08 Thread Michael Gormley
>> >> >> -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 >>

[R] Tcl\tk not supported on this system

2008-08-08 Thread Michael Gormley
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

Re: [R] Tcl\tk not supported on this system

2008-08-08 Thread Marc Schwartz
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

Re: [R] Tcl\tk not supported on this system

2008-08-08 Thread Marc Schwartz
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

Re: [R] Tcl\tk not supported on this system

2008-08-08 Thread Prof Brian Ripley
--- 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

Re: [R] Tcl\tk not supported on this system

2008-08-08 Thread Michael Gormley
__ >>> Patrick Richardson >>> Biostatistician - Laboratory of Translational Medicine >>> Van Andel Research Institute >>> Grand Rapids, MI 49503 >>> ph. 616-234-5787 >>> >>> >>> >>> >>> -Original Message- >>>

Re: [R] Tcl\tk not supported on this system

2008-08-08 Thread Prof Brian Ripley
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

Re: [R] Tcl\tk not supported on this system

2008-08-08 Thread Roland Rau
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

Re: [R] Tcl\tk not supported on this system

2008-08-08 Thread Richardson, Patrick
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

[R] Tcl\tk not supported on this system

2008-08-08 Thread Michael Gormley
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

[R] Tcl/tk question

2008-03-18 Thread Erin Hodgess
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

Re: [R] Tcl/tk question

2008-03-18 Thread Gabor Grothendieck
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

Re: [R] Tcl/tk question

2008-03-18 Thread John Fox
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

Re: [R] Tcl/tk question

2008-03-18 Thread Ben Tupper
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

[R] Tcl/tk question solved

2008-03-18 Thread Erin Hodgess
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

Re: [R] Tcl/Tk not working on Mac OS X

2008-03-06 Thread Roy Mendelssohn
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

[R] Tcl/Tk not working on Mac OS X

2008-03-06 Thread Aaron Solomon Adelman
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: