Graphic Palettes

Tk Canvas
TkZinc 3.3.4

All graphical objects listed in Tk Canvas Objects can be animated. The object changes colour, or their image depending on the »state« property. Possible states are: »hidden«, »normal«, »active« and »disabled«. An image object thus may display three different icons, depending on its state.

The default palette for canvas objects is shown in Figure 6.1, “The Tk Canvas Palette”. The ellipsis (...) denotes that the item starts an »insert mode«. This insert mode is terminated either by turning it off –implemented through a checkbutton with on and off logic– or by selecting another object –auto off.

Figure 6.1. The Tk Canvas Palette

TkPath is a close counterpart to Scalable Vector Graphics, written for Tcl/Tk.

Many objects inside of TkPath, replace the before mentioned Tk canvas objects. Jeszra generates Scalable Vector Graphics for both Tk canvas and TkPath, mixing objects from both is possible and recommended. The TkPath objects are however the first choice.

TkPath uses CAIRO under the X Window System. Hence TkPath objects are very fast, slick and anti-aliased.

Key Features

Figure 6.2. The TkPath 0.2 Palette

Figure 6.3. Editing the TkPath 0.3 Palette

The TkPath 0.3 palette features two new items, as shown in Figure 6.3, “Editing the TkPath 0.3 Palette”. The first new item is »tkp::canvas«, the »pathCanvas« window. »group« is the second new item.

The Extended Palette


The pathCanvas window class replaces the Tk canvas window. pathCanvas is the foundation for using TkPath objects. Starting with version 0.3 TkPath objects are no longer injected into a ordinary Tk canvas window. pathCanvas is the successor to Tk´s own canvas window and TkPath version 0.2.

»tkp« in »tkp::canvas« stands for the new TkPath namespace(tkp). That is: a pathCanvas window takes the place of a Tk canvas window whenever importing the canvas command, from the tkp namespace, in the target namespace.


Group is a container object. Groups are themselves invisible. Groups are very important for structured transformations. Different transformations cannot be combined commutative onto a single graphical object. A group shall be used in order to separate multiple transformation types and to apply additional tramsformations –through a group– on the same object.

groups do not have coordinates! The coordinates originate from the grouped objects.

As the noun group implies: a group may contain multiple objects. Any transformation applied on a group is also applied onto each contained objects.

Only objects originating from TkPath (ptext, group, polyline, path, pimage, pline, ppolygon, prect, circle, ellipse) are group-able.

Groups are displayed with their parent child dependency inside of Jeszra’s hierarchy view. Groups and their visual representation inside the hierarchy view are roughly equivalent to container windows. Likewise do Drag'n'Drop operations work for groups. Of course moving, copying and dragging groups is restricted to »pathCanvas« windows and contained groups.

TkZinc 3.3.4 is the third supported vector graphics window; again TkZinc 3.3.4 is a dedicated visualization system. TkZinc 3.3.4 contains a series of air traffic control specific objects. Such as »track«, »map«, »recticle«, »waypoint« and »tabular«. These objects are only briefly mentioned herein. Neither is Scalable Vector Graphics generated for specific air traffic objects.

The common objects are however of general interest. Quit often are TkZinc 3.3.4 objects almost identical to their Tk canvas counterparts.

Key Features

Figure 6.4. The TkZinc 3.3.4 Palette