Tuesday, 6 July 2021

Treeview 03

The script shows how to create a two-column list in a GTK3 window. The operations on the list are very similar to that presented in Treeview 02 previously, however the list given in this script allows multiple selection of nodes.




  1. Define an entry box.
  2. Define a treeview list with two columns.
  3. The width of the column can be resize.
  4. The sorting order of items in each column can be changed by clicking on the column labels.
  5. Define font style for the texts in the columns.
  6. Define right alignment for the numeric column.
  7. Use Ctrl-f to find row quickly when treeview is set focused.
  8. Allow multiple selection on nodes of the treeview.
  9. Define some action buttons: Edit, Del and Clear, which can modify the items in the list.
  10. Define a status bar at the bottom of the window. The bar can shows message from the operations performed.

Source Code


No comments:

Post a Comment