[ Go to the Skycat/RTD Web Site]

Archive of the Skycat/RTD/CatLib collaboration list

Using TclCommand in Tcl packages

Martin Beckett (mgb@ast.cam.ac.uk)
Wed, 12 Feb 1997 18:10:30 +0000

I am trying to use the TclCommand class from RTD in my own Tcl program.

I have followed the DIR example in the TclCommand man page
but I'm having difficulty working out what should go in the
Init function when the package is loaded.

int DIR_Init(Tcl_Interp *interp)
{
Tcl_CreateCommand( # What goes here # )
return(TCL_OK);
}

The objects defined in the Rtd package are all Tkwidgets, so the
initialisation code is different.

ps. I'm using Tcl8.0 + gcc on Linux/ELF

----------------------------------------------------------------------
Martin Beckett, Institute of Astronomy, University of Cambridge
Tel: 01223 337093 Fax: 01223 330804 Email: mgb@ast.cam.ac.uk