The script shows how to create a two-column list in a GTK3 window. Based on the operations defined in Treeview 02 previously, two more operations which can move the items up and down are added to the treeview.
- Define an entry box.
- Define a treeview list with two columns.
- The width of the column can be resize.
- The sorting order of items in each column can be changed by clicking on the column labels.
- Define font style for the texts in the columns.
- Define right alignment for the numeric column.
- Use Ctrl-f to find row quickly when treeview is set focused.
- Define some action buttons: Edit, Del and Clear, which can modify the items in the list.
- Define two more action buttons: Up and Down, which can move the items in the list.
- Use stock icon and tooltip to construct each buttons.
- Define a status bar at the bottom of the window. The bar can show message given by the operations performed.
No comments:
Post a Comment