Re: [R] MENU TCL-TK

2008-03-18 Thread ermimi
My doubts were resolved, thank you Gabor ermimi wrote: > > Hello! > > I need help in a menu in TCL-TK. I have 3 functions, one function > (function1) that sum 2 numbers and return the result. Other > function(function2) that print a number. And the other (function3), is a > menu th

Re: [R] MENU TCL-TK

2008-03-18 Thread Gabor Grothendieck
Make sure d has been created (see first line marked ##) and then use d <<- function(a, b) as shown in second line marked ##. See ?"<<-" Another solution is to use the proto package. The home page http://rproto.googlecode.com has pointers to examples of using gWidgets with proto and the same

[R] MENU TCL-TK

2008-03-18 Thread ermimi
Hello! I need help in a menu in TCL-TK. I have 3 functions, one function (function1) that sum 2 numbers and return the result. Other function(function2) that print a number. And the other (function3), is a menu that has several options. I need use the result that returns the option that calls to