Hello R and tcltk users... I'm running into difficulties applying the tkmenubutton() and tklistbox() functions, found in the tcltk package, to a simple gui. My search for R code which utilizes these two functions has come up empty. Currently, I am attempting to translate pure "Tcl/Tk" code to R with little to no success. So far, the most helpful tool for learning the tcltk R commands has been the "tkdensity()" and "tkttest()" examples, included in the tcltk package. Any other (simple) examples of gui construction utilizing the tkmenubutton() or tklistbox() functions would be greatly appreciated. Jason Fisher ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
"Jason Fisher" <stormplot at hotmail.com> writes:> Hello R and tcltk users... > > I'm running into difficulties applying the tkmenubutton() and > tklistbox() functions, found in the tcltk package, to a simple gui. > My search for R code which utilizes these two functions has come up > empty. Currently, I am attempting to translate pure "Tcl/Tk" code to > R with little to no success. So far, the most helpful tool for > learning the tcltk R commands has been the "tkdensity()" and > "tkttest()" examples, included in the tcltk package. Any other > (simple) examples of gui construction utilizing the tkmenubutton() > or tklistbox() functions would be greatly appreciated.Well, not a whole lot has been written besides the demos, but have you studied the examples in the man pages? Also try looking at the widget demo that comes with tcltk, and make use of the tclhelp interface if you have it. I haven't played too much with menus and menubuttons, but listboxes are fairly straightforward, along the lines of tt<-tktoplevel() mb<-tklistbox(tt) tkpack(mb) tkinsert(mb, 0, month.name) tkget(mb,"active") -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi, I'm using R1.1 GUI on NT4 box, I noticed that when I use functions that print some output during processing I see this output only after the function as terminated. If during the processing I activate another program's window that overlay completely the R window and come back to R then I'll see all the output up to the current state. My guess is that the internal functions that output to the console aren't refreshing the console window with a call to InvalidateWindowRectangle or whatever is appropriate. It would be nice if this would be corrected in future release. Thanks for a great piece of software. Yves -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._