rrichte2 at fh-lausitz.de
2010-Jul-26 19:09 UTC
[R] HowTo get callback on destroy of grDevices::windows()
I'm build with the usage of the tcltk/tcltk2 package a gui which is started with rscript.exe. At this gui the user is able to open and close plot windows. Now I'm looking for a way that a r function is called when a grDevices::windows window is closed. Is there a way to attach a callback function or so, which would be triggert if the user click at close of the grDevices::window? My workarround is to check continues the open windows with the tcl command after, but it's no good workarround. thanks roland
Duncan Murdoch
2010-Jul-26 19:42 UTC
[R] HowTo get callback on destroy of grDevices::windows()
On 26/07/2010 3:09 PM, rrichte2 at fh-lausitz.de wrote:> I'm build with the usage of the tcltk/tcltk2 package a gui which is > started with rscript.exe. At this gui the user is able to open and close > plot windows. > > Now I'm looking for a way that a r function is called when a > grDevices::windows window is closed. > Is there a way to attach a callback function or so, which would be > triggert if the user click at close of the grDevices::window? >I don't know if that's possible, but you'll be more likely to get a definitive answer on the R-devel list. Duncan Murdoch> My workarround is to check continues the open windows with the tcl > command after, but it's no good workarround. > > thanks > roland > > ______________________________________________ > R-help at 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. >