[Rd] tcltk freezing using MS Windows for R-2.14+
Moeltner, Andreas
Andreas.Moeltner at med.uni-heidelberg.de
Tue Dec 18 11:38:19 CET 2012
R Version 2.15.0/Windows XP
Maybe this will help to identify the problem (I have similar problems with other tcltk-windows, too.)
Inserting some time delay after tktoplevel helps (on my PC):
> test2GUI <- function(){
> require(tcltk)
> MainWindow <- tktoplevel()
Sys.sleep(0.1)
> topMenu <- tkmenu(MainWindow)
> tkconfigure(MainWindow,menu=topMenu)
> tkgrab.set(MainWindow)
> tkfocus(MainWindow)
>}
Cheers
Andreas
Andreas Möltner
More information about the R-devel
mailing list