Hi Arjen:

I have just (revision 12702) finished implementing the
test_wish_standard_examples target which invokes the
"wish_standard_examples" configured script to test all the standard
examples under wish taking advantage of the PLplot TEA capabilities.
So as a result of this commit and a previous commit where I did a
similar implementation for the corresponding tclsh case, then you get
essentially complete testing of the Tcl, Tk, Itcl, Itk, and Iwidgets
PLplot capabilities by simply running "make test_interactive".

The only exception to this complete testing that I am aware of is the
runAlldemos.tcl script mentioned in examples/tk/README.tkdemos.  Since
that test also works for the most part when you try it by hand, I
strongly encourage you to add a test target to run runAlldemos.tcl
similar to the revision 12702 commit (where that commit essentially
demonstrates everything you have to do to create such a test target).

Note the test_wish_standard_examples target currently has display
issues that have been discussed in the commit message for revision
12702. Those issues for this test target (or if you run either "wish
wish_standard_examples" or

wish
% source wish_standard_examples

) are that the display of the plots are missing although all the
examples run as evidenced by the usual stdout results from example
23) without error messages or non-zero return codes.

My wish and X setup cannot be the issue here.  For example, the following 
simple script

button .hello -text "Hello, World!" -command { exit }
pack .hello

creates a widget that displays and works for me when the filename is
mentioned as a wish argument or sourced from inside a wish
environment.  But if I do everything I can to the configured
wish_standard_examples script (rename it to
wish_standard_examples.tcl, get rid of all the leading magic
commentary that is there to make it possible to run the command as a
standalone script) to make it as identical as possible to the simple
one above, the display issue continues. The one exception where
everything works (plots are displayed with no errors) is if I cut and
paste the contents of wish_standard_examples to a wish environment by
hand, e.g.,

wish
lappend auto_path /home/software/plplot_svn/HEAD/build_dir/bindings/tk-x-plat 
/home/software/plplot_svn/HEAD/build_dir/bindings/tk
package require Pltk
source tkdemos.tcl
# disable pauses
$plwin cmd plspause 0
0
1
#2
3
4
5
6
7
8
9
10
11
....

Clearly cutting and pasting is not required to get the above two-line
test to work on my platform (as expected).  So I am pretty sure the
display issue for the test_wish_standard_examples target or when
running "wish wish_standard_examples" is caused by something slightly
wrong with the way that tkdemos.tcl initializes the Tk display
environment when it is invoked from a wish environment.

So this issue is something to keep in mind as you look at the current
"horrible hack" in tkdemos.tcl to distinguish between plserver and
wish invocations.

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
__________________________

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to