|
From: Steve L. <st...@Di...> - 2005-01-24 13:53:45
|
On 22/01/2005, at 2:06 AM, Donald G Porter wrote:
>> Not sure of the best way forward - perhaps just "package require Tk"
>> on
>> OSX before invoking [tk windowingsystem] ?
>
> My preference would be an index script that looks like this:
>
> if {![package vsatisfies [package provide Tcl] 8.5]} {return}
> if {[catch {package present Tk 8.5}] != 0} {return}
> if {[tk windowingsystem] ne "x11"} {return}
> package ifneeded Tile 0.5 [list load [file join $dir libtile.so]]
Is that going to address the issue - how to selectively load the shared
library depending on the windowing system when Tk hasn't necessarily
been "package required" when the Tile pkgIndex.tcl runs?
Or am I missing something?
Steve
|