search for: testbutton

Displaying 1 result from an estimated 1 matches for "testbutton".

2000 Oct 26
1
Rgui and tcltk
...t output to the R Console window *disappears* after <return> is pressed The following, in R 1.1.1 under Windows NT 4, and using Tcl/Tk 8.3, illustrates: library(tcltk) testwindow <- tktoplevel() testaction<-function(){cat("Hello\n") flush.console()} testbutton <- tkbutton(testwindow, text="Click me", command=testaction) tkpack(testbutton) This successfully makes a Tk window with a button. But pressing the button does not do what I intended. What I would like is for the button-press to print out "Hello" at the R Console, and re...