ListView is used to make custom GtkTreeViews. It supports the adding
and removing of columns, creating a menu for a column toggle list and
support for ‘status_field’s which are used while updating the columns data.
-
class ListViewColumn(name, column_indices)
- Holds information regarding a column in the ListView
-
ListView.TreeviewColumn
-
ListView.add_bool_column(header, col_type=<type 'bool'>, hidden=False, position=None, status_field=None, sortid=0, column_type='bool')
- Add a bool column to the listview
-
ListView.add_column(header, render, col_types, hidden, position, status_field, sortid, text=0, value=0, pixbuf=0, function=None, column_type=None, sort_func=None)
- Adds a column to the ListView
-
ListView.add_func_column(header, function, col_types, sortid=0, hidden=False, position=None, status_field=None, column_type='func', sort_func=None)
- Add a function column to the listview. Need a header name, the
function and the column types.
-
ListView.add_progress_column(header, col_types=[, <type 'float'>, <type 'str'>], sortid=0, hidden=False, position=None, status_field=None, function=None, column_type='progress')
- Add a progress column to the listview.
-
ListView.add_text_column(header, col_type=<type 'str'>, hidden=False, position=None, status_field=None, sortid=0, column_type='text', sort_func=None)
- Add a text column to the listview. Only the header name is required.
-
ListView.add_texticon_column(header, col_types=[, <type 'str'>, <type 'str'>], sortid=1, hidden=False, position=None, status_field=None, column_type='texticon', function=None)
- Adds a texticon column to the listview.
- Creates a menu used for toggling the display of columns.
-
ListView.create_column_state(column, position=None)
-
ListView.create_model_filter()
- create new filter-model
must be called after listview.create_new_liststore
-
ListView.create_new_liststore()
- Creates a new GtkListStore based on the liststore_columns list
-
ListView.get_column_index(name)
- Get the liststore column indices belonging to this column.
Will return a list.
-
ListView.get_column_name(index)
- Get the header name for a liststore column index
-
ListView.get_state_field_column(field)
- Returns the column number for the state field
-
ListView.load_state(filename)
- Load the listview state from filename.
- Callback for the generated column menuitems.
- Register a checklist menu with the listview. It will automatically
attach any new checklist menu it makes to this menu.
-
ListView.remove_column(header)
- Removes the column with the name ‘header’ from the listview
-
ListView.save_state(filename)
- Saves the listview state (column positions and visibility) to
filename.
-
ListView.set_sort_functions()
-
ListView.set_treeview(treeview_widget)
- Set the treeview widget that this listview uses.