[R] How to close gwindow by automatially

j verzani jverzani at gmail.com
Thu Apr 5 05:29:01 CEST 2012


mrzung <mrzung46 <at> gmail.com> writes:

> 
> Hi, all
> 
> I am using gWidgets for making gui, and in trouble with closing gwindow.
> 
> I want to close gwindow "A" by automatically when I click a button in
> gwindow "A" that loads another gwindow "B" .
> 
> for example.
> 
> A<-gwindow(visible=FALSE)
> open<-gbutton(cont=A,"open new
> window",handler=function(h,...){visible(B)<-TRUE})


In the handler just add the call dispose(A).

If you want, feel free to email me these questions.

--John



More information about the R-help mailing list