Re: [tkined] Scotty 2.1.6 and Tk8.0

Buz Owen (ado@bbn.com)
Tue, 26 Aug 1997 15:04:58 -0400

David Engel wrote
> I'm trying to use Tnm 2.1.6 with Tcl/Tk 8.0. In limited testing, Tnm
> appears to work fine with plain Tcl. However, problems occur when
> trying to use Tnm with Tk. Tnm's undocumented event command conflicts
> with Tk's own event command. Simply removing Tnm's event command
> results in a segmentation violation when Tnm is loaded.
>
> Does anyone know how to get around this problem? I'd prefer to not
> have to go back to Tcl/Tk 7.6/4.2 since we are upgrading other
> applications to Tcl/Tk 8.0.

I use something like the following:

#!/usr/local/bin/wish8.0
rename event tk_event
package require Tnm
rename event tnm_event
rename tk_event event

hope this helps/b

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.