[R] stop unwanted boxes/dialogs in tcl/tk

From: Hua Li <hualihua_at_yahoo.com>
Date: Tue, 17 Jun 2008 09:14:47 -0700 (PDT)


Hello,

I have a question about tcl/tk: is there a way to stop more messagers/listchoice/etc. that are set up earlier, but are unwanted later?

for example,

require(tcltk)
ttMain <- tktoplevel()
tkwm.title(ttMain,"Question")

f.fcn <- function(){

    t1 <- modalDialogOK("Elicitation","What's the LOWER bound of A1",entryInit="")

    t2 <- modalDialogOK("Elicitation","What's the LOWER bound of A2",entryInit="")

    t3 <- modalDialogOK("Elicitation","What's the LOWER bound of A3",entryInit="")

}

f.fcn()

When run the function, three dialog box would pop up in sequence. If in the middle, say, after t2 pop up, I don't want to answer t3, is there a way to block t3? Close the t1,t2 boxes(even the "question" main frame) doesn't stop t3 coming up, though it gives a lot of error messages.

Thanks!

Hua



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. Received on Tue 17 Jun 2008 - 16:40:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 17 Jun 2008 - 17:30:46 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive