From: Alan W. I. <ir...@be...> - 2002-09-24 18:16:55
|
On Tue, 24 Sep 2002, Maurice LeBrun wrote: > The changes I just committed also allow the following style of loading, > from plplot/tmp: > > wish > lappend auto_path . > package require Plplotter > source tkdemos.tcl > 1 > 2 > ... > > The only problem is that, on my system, the resulting window has some > redisplay problems. I confirm those display problems on my system with the above recipe. I think the problem is that you have set up everything so that "package require Plplotter" indirectly executes load ./drivers/tkwind_drv.so Plplotter (see pkgIndex.tcl). That is perfect for source "runAllDemos.tcl", but that is not correct for either "source tkdemos.tcl" (under wish) or "source tcldemos.tcl" (under tclsh). Instead, for the tkdemos.tcl case "package require Pltk" should indirectly execute load ./drivers/tkd_drv.so Pltk (very different from the load command above). Similarly, for the tcldemos.tcl case "package require Pltcl" should indirectly execute load ./libplplottcltkd.so.5.1.0 Pltcl Maurice, can you put that required extra functionality (with generalization to the installed case once the plplot/tmp case works) into pkgIndex.tcl? (I tried more or less blindly following what you did for the "package require Plplotter" case, but ran into errors due to my extremely limited knowledge of tcl). Alan |