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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to