To Maurice, Arjen, and/or James Tappin:

I am primarily addressing this appeal to you guys because
you are the only ones I know with some combined PLplot and Tcl/Tk expertise.

In order to finish off some Tcl/Tk8.6 + itcl/itk/iwidgets version 4
testing work, I need some global way to effectively replace

package require Itcl
package require Itk
package require Iwidgets

everywhere it occurs in our code with either

package require Itcl 3.0
package require Itk 3.0
package require Iwidgets 3.0

OR

package require itcl 4.0.0
package require itk 4.0.0
package require iwidgets 4.0.0

I am thinking along the lines of setting some global variables such
as

itcl_package_name
itk_package_name
iwidgets_package_name

with the appropriate values for version 3 or version 4, but I don't
know whether that is possible with Tcl.  As an experiment, I did try
using

set itk_package_name "itk 4.0.0"

in bindings/tk/pkgIndex.tcl

and I attempted to access that variable in examples/tk/tk02

using

global itk_package_name
puts "$itk_package_name"

But the result errored out with

can't read "itk_package_name": no such variable
while executing
"puts "$itk_package_name""

The goal here is to make it easy for the user to choose between
using either version 3 of [incr Tcl_tk] or version 4.  In fact, my
testing of those two cases is being held up because I don't have
an easy way to switch between them (without a lot of code editing).
So some quick help on how to make this possible would be appreciated.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to