Thanks, but just one more question
How can I catch the response and put it on a tktext?
Imagien there is a function that the response is an error, how can i catch this
error and manage it?
Thanks!
> From: pda...@gmail.com
> Subject: Re: [R] Get the output of a function in R GUI
>
On 22 Oct 2015, at 10:49 , Jesús Para Fernández
wrote:
> Hi,
>
> I want to create my own RGUI, so I�m using tcltk for that.
>
> In a very simple example, I want to get the response of a function into a
> tktext, so I have done this:
> data<-c(2,3,5,2)
> tt<-tktoplevel
> text<-tktext(tt)
> t
Thanks, but it does�nt do what I want.
What I wnat is to insert it into a tktext.
Jes�s
Date: Thu, 22 Oct 2015 10:06:20 +0100
Subject: Re: [R] Get the output of a function in R GUI
From: kmezh...@gmail.com
To: j.para.fernan...@hotmail.com
CC: r-help@r-project.org
Hi,
require(tcltk)
data<
Hi,
require(tcltk)
data<-c(2,3,5,2)
PressedOK <- function()
{
tkmessageBox(message=sum(data))
}
tt <- tktoplevel()
OK.but <- tkbutton(tt,text="OK",command=PressedOK)
tkgrid(OK.but)
tkfocus(tt)
Please take a look in examples:
http://mcu.edu.tw/~chenmh/teaching/project/r/reference/RTclTkExamples
4 matches
Mail list logo