[R] How to close gwindow by automatially

mrzung mrzung46 at gmail.com
Thu Apr 5 03:45:05 CEST 2012


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})
visible(A)<-TRUE

B<-gwindow(visible=FALSE)
result<-gtext(cont=B,"Your target is got")


How can I close the previous window when I open a new window?

--
View this message in context: http://r.789695.n4.nabble.com/How-to-close-gwindow-by-automatially-tp4533705p4533705.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list