02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3<br />

Launcher<br />

host/resource/tcl/app-config/Launch/01*.tcl<br />

Supporting procedures and definitions (grouped into separate files by related<br />

functionality) for the launcher.<br />

host/resource/tcl/app-config/all/host.tcl<br />

Defaults for global settings; may be redefined for specific host types.<br />

host/resource/tcl/app-config/all/${WIND_HOST_TYPE}.tcl<br />

Host-specific overrides for global settings.<br />

3<br />

3.7.1 Tcl: Launcher Initialization File<br />

When the launcher starts up, it looks for a file called .wind/launch.tcl in your home<br />

directory. If that file is present, its contents are read with the Tcl source command<br />

before the launcher puts up its initial display. Use this file to collect your custom<br />

modifications, or to incorporate shared customizations from a central repository of<br />

Tcl extensions at your site.<br />

3.7.2 Tcl: Launcher Customization Examples<br />

When you begin experimenting with any new system (or language), errors are to<br />

be expected. Any error messages from your launcher Tcl initialization code are<br />

captured by the launcher, and a summary of the error is displayed in a window<br />

similar to Figure 3-5.<br />

Figure 3-5<br />

Tcl Error Display<br />

To see the full Tcl error display, click on the Details… button in the error display;<br />

click Continue to dismiss the display.<br />

The examples in this section use the Tcl extensions summarized in Table 3-2. For<br />

detailed descriptions of these and other <strong>Tornado</strong> graphical building blocks in Tcl,<br />

see Help>Manuals contents><strong>Tornado</strong> API Reference>GUI Tcl Library.<br />

85

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!