[R] Is it possible to pass a Tcl/Tk component as argument to a function

From: Hao Liu <hao.liu_at_bms.com>
Date: Wed, 16 May 2007 08:58:02 -0400

hi! All:

I wonder if someone has done this before...

I am writing several functions that conduct statistical analysis using a GUI interface by Tcl/Tk, they share many identical GUI components. What I am trying to do now is to simplify the code by writing a GUI repository for all the components they use, thus save effort for code maintenance.

Since they all use:

mainFrame <- tkcanvas(top)


I wonder if I can write functions that take mainFrame as an argument, 
and call those functions from other place with initialized tkcanvas 
object. I did not see example like this and from my *limited* experience 
with tcltk, I found it always need something to be initialized before 
put to use, that makes me wonder if this idea will work... if it does 
not, any work arounds? like using Macro?


	[[alternative HTML version deleted]]

R-help_at_stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 16 May 2007 - 13:09:18 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 Wed 16 May 2007 - 14:31:31 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.