Saturday, 14 May 2016

Treeview 02

The script shows how to create a two-column list in a GTK3 window.

  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. Define some action buttons: Edit, Del and Clear, which can modify the items in the list.
  9. 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