From: Jeff H. <je...@ac...> - 2011-04-06 15:04:05
|
On 2011-04-05, at 11:59 PM, <L....@su...> <L....@su...> wrote: > Is there a way for Tcl to detect whether ActiveTcl or the supplied Tcl/Tk is in use? You can determine specifically if it is ActiveTcl with 'package require ActiveTcl', which will return exact build version if it is AT (error otherwise). However, these are just general fixes for the core, so 'info patchlevel' will give you what you need. You can use a 'package require Tcl 8.5.9' check as well. > (luckily, I was also able to find a crossplatform workaround for the Mac-supplied Tk slider freeze by decreasing the amount of traced-variable checking and Tk updating needed when the slider was used, so that one's not going to need a Mac-only workaround.) Yes, I did notice that it seemed to have some aspect of event starvation going on. The slider can be tricky when tied to a very expensive update. Using a deferred update would be better (use 'set ::deferred [after 500 ...]', then after cancel deferred before scheduling again). Jeff > On 6 Apr 2011, at 06:16, Jeff Hobbs wrote: > >> This only occurs on the shipped Tcl/Tk. I did not have an issue with the latest ActiveTcl 8.6 beta (latest AT 8.5 probably works too). Just try that and change your Makefile_defs_macosx to: >> >> TCL_LIBS = -F/Library/Frameworks -framework Tcl -framework Tk >> >> Jeff >> >> On 2011-04-02, at 9:16 AM, <L....@su...> <L....@su...> wrote: >> >>> I've previously reported Mac-only Tcl/Tk problems and interface lockups, most recently due to assigning keyboard shortcuts. Here's another one, and how to reproduce it. Like previous Mac-only problems I've reported, this only happens on the Mac, not on other platforms (Ubuntu, Redhat, Cygwin). >>> >>> Environment: Stock Mac OS X 10.6.7 Snow Leopard, using the default supplied Tcl/Tk 8.5.7 unix binaries. >>> >>> Instructions to reproduce: >>> Download SaVi from http://savi.sf.net/ >>> >>> Open a terminal window. >>> Unpack with tar xvf savi-1.4.4-release.tar (Safari will have already gunzipped it) >>> Build with: >>> cd savi1.4.4 >>> make ARCH=macosx >>> >>> Once built, launch with: >>> cd savi1.4.4 >>> ./savi >>> >>> Open the coverage window from the Views menu (Views -> Global coverage...) >>> >>> Move the horizontal slider next to the elevation angle popup to the right. All controls will freeze up; back/forwards playbar at bottom will be inoperable, etc. Do ps and kill XXXX from the terminal window to remove the process. >>> >>> ...and this only happens on Mac Tk. Peachy. >>> >>> Lloyd Wood >>> L....@su... >>> http://sat-net.com/L.Wood > > > > |