"Fossies" - the Fresh Open Source Software Archive

Member "SAOImageDS9/tkblt/doc/BLT.n" (13 Nov 2019, 3061 Bytes) of package /linux/misc/ds9.8.1.tar.gz:


Caution: As a special service "Fossies" has tried to format the requested manual source page into HTML format but links to other man pages may be missing or even erroneous. Alternatively you can here view or download the uninterpreted manual source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

intro

NAME
DESCRIPTION
COMMANDS
ADDING BLT TO YOUR APPLICATIONS
BUGS
KEYWORDS

NAME

BLT − Introduction to the BLT library

DESCRIPTION

BLT is a library of extensions to the Tk library. It adds new commands and variables to the application’s interpreter.

COMMANDS

The following commands are added to the interpreter from the BLT library:

graph

A 2D plotting widget. Plots two variable data in a window with an optional legend and annotations. It has of several components; coordinate axes, crosshairs, a legend, and a collection of elements and tags.

barchart

A barchart widget. Plots two-variable data as rectangular bars in a window. The x-coordinate values designate the position of the bar along the x-axis, while the y-coordinate values designate the magnitude. The barchart widget has of several components; coordinate axes, crosshairs, a legend, and a collection of elements and tags.

vector

Creates a vector of floating point values. The vector’s components can be manipulated in three ways: through a Tcl array variable, a Tcl command, or the C API.

ADDING BLT TO YOUR APPLICATIONS

It’s easy to add BLT to an existing Tk application. BLT requires no patches or edits to the Tcl or Tk libraries. To add BLT, simply add the following code snippet to your application’s tkAppInit.c file.

if (Tkblt_Init(interp) != TCL_OK) {

return TCL_ERROR;

}
Recompile and link with the tkblt library and that’s it.

Alternately, you can dynamically load tkblt, simply by invoking the command

% package require tkblt

from your Tcl script.

BUGS

Send bug reports, requests, suggestions, etc. to wjoye@cfa.harvard.edu

KEYWORDS

BLT