How to assemble a starkit

First some background on what is happening behind the scenes...

Starkits rely on a feature of Tcl/Tk 8.4 called the Virtual File System (VFS). Through the magic of VFS, a starkit gets "mounted" at run time, such that it appears to contain a directory structure. Because of this, application scripts can load other scripts and open data files, even while running as starkit. The trick is to set up a structure which works in unpacked form while coding and testing, and which can later be assembled into an equivalent packaged starkit.


To build starkits on Windows, you need
  1. the Windows version of tclkit (Tcl/Tk, GUI mode) - see Downloading tclkit
  2. the Windows version of tclkitsh (Tcl/Tk, console mode) - see Downloading tclkitsh
  3. the SDX utility - see Downloading SDX
To build starkits on Unix, you need
  1. a suitable Unix version of tclkit - see Downloading tclkit
  2. the SDX utility - see Downloading SDX

At this point, you should be able to type "sdx" at the console prompt, and have SDX return a few lines of explanatory info.

STEP 1 - Hello world

        package require Tk
        pack [button .b -text "Hello World!" -command bell]
        sdx qwrap hello.tcl
STEP 2 - Unwrap
        sdx unwrap hello.kit
STEP 3 - Make changes STEP 4 - Wrap it up
        sdx wrap hello.kit

For more examples, see: There's a mailing list for discussion about starkits, starpacks, and tclkit:
    /mailman/listinfo/starkit


Updated on 10 Jul 2002, 15:08 GMT
Search - Recent Changes - 4 References - About WiKit - Go to Starkit - Help