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. ______________________________________________ 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.