search for: pressedok

Displaying 2 results from an estimated 2 matches for "pressedok".

Did you mean: pressed
2012 Feb 24
1
tcl tk command function with arguments ??
Hello, I am using R 2.11.1 under Windows XP. I would like to know if its possible to use a function with arguments as a command in tcl tk. For example require(tcltk) PressedOK <- function() { tkmessageBox(message="You pressed OK!") } tt <- tktoplevel() OK.but <- tkbutton(tt,text="OK",command=PressedOK) tkgrid(OK.but) tkfocus(tt) the function PressedOK has no arguments and its use in "tkbutton(tt,text="OK",command=PressedO...
2005 Mar 16
0
X11 Protocol error : BadWindow
...ommand Language and the Tk toolkit i tcltk-dev 8.4.1-12 Tool Command Language and the Tk toolkit i tcltk-shlibs 8.4.1-12 Tool Command Language and the Tk toolkit #### R CODE PressedOK <- function() { plot(runif(100)*10,runif(100)*10) } tt <- tktoplevel() OK.but <- tkbutton(tt,text="OK",command=PressedOK) tkgrid(OK.but) tkfocus(tt) If I evaluate the above code, it works as expected. However, when completed (I close the "OK" window), if I ente...