Widget Hierarchy

The widgets are organised hierarchically.

In Tcl/Tk this is done by using the parent name followed by a dot and the new widget name:

set text1 [text .txt]

In Chicken/Tk this is done by invoking the parent widget with the sub-command create-widget and the widget type:

(define text1 (tk 'create-widget 'text))

© Author | Home | Sitemap