From Andreas.Moeltner at med.uni-heidelberg.de  Tue Dec 18 11:38:19 2012
From: Andreas.Moeltner at med.uni-heidelberg.de (Moeltner, Andreas)
Date: Tue, 18 Dec 2012 10:38:19 +0000
Subject: [Rd] tcltk freezing using MS Windows for R-2.14+
Message-ID: <A66205E9BC01644FA7EF2506B21345696825E92D@EXC16.ads.krz.uni-heidelberg.de>

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



[Rd] tcltk freezing using MS Windows for R-2.14+
Moeltner, Andreas