Module rstk::treeview

source ·
Expand description

Treeview widget - displays hierarchical data with multiple values.

A combined tree/list-view widget, for displaying hierarchical data with multiple values.

Columns

The columns can be identified as follows (see Tk manual):

  • using a string name, set using the columns method
  • by index, counting from 1 (this must be given as a string)
  • “#0” is a special index, referring to the left-most tree column

Events

Use bind to call a function on following event:

  • <<TreeviewSelect>> - whenever selection is changed
  • <<TreeviewOpen>> - when a node is opened
  • <<TreeviewClose>> - when a node is closed

Structs

Functions

  • Creates an instance of a treeview widget in given parent.