gaupol.View

Source: gaupol/view.py

Anchestors: gi.overrides.Gtk.TreeView, gi.repository.Gtk.TreeView, gi.overrides.Gtk.Container, gi.repository.Gtk.Container, gi.overrides.Gtk.Widget, gi.repository.Gtk.Widget, gi.repository.GObject.InitiallyUnowned, gi.overrides.GObject.Object, gi.repository.GObject.Object, gi._gobject._gobject.GObject, builtins.object

class gaupol.View

Widget to display subtitle data in the form of a list.

View.columns

Enumeration for columns currently shown

The values of the enumeration items correspond to the column indices and are updated when columns are added, removed or reordered. Note that these indices are not necessarily the same as the column indices in the underlying Gtk.ListStore data model.

Methods

View.__init__(edit_mode)

Initialize a View instance.

View.connect_selection_changed(callback)

Connect to the “changed” signal of selection.

Using this instead of the tree selection’s own connect method allows signal handlers to be blocked while in the process of selecting multiple rows, which should be significantly faster if actually doing something in the signal handler.

Return signal handler ID.

View.disconnect_selection_changed(callback)

Disconnect from the “changed” signal of selection.

View.get_focus()

Return the row and column of the current focus.

View.get_header_label(field=None, title=None)

Return a column header label from text.

View.get_selected_rows()

Return a sequence of selected rows.

View.is_position_column(col)

Return True if col is a position column.

View.is_text_column(col)

Return True if col is a text column.

View.scroll_to_row(row)

Scroll view until row is visible.

View.select_rows(rows)

Select rows, clearing previous selection.

View.set_focus(row, col=None)

Set the focus to row (-1 for last), col.

View.update_headers()

Update the attributes of all column header labels.