[GTKUI] Enable multi-row selection with mouse

This commit is contained in:
Calum Lind 2017-03-22 12:41:25 +00:00
parent 648dc93655
commit a76fde5feb
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ class ListView(object):
self.treeview.set_rules_hint(True) self.treeview.set_rules_hint(True)
self.treeview.set_reorderable(False) self.treeview.set_reorderable(False)
self.treeview.set_rubber_banding(True) # Enable mouse multi-row selection.
self.treeview.get_selection().set_mode(gtk.SELECTION_MULTIPLE) self.treeview.get_selection().set_mode(gtk.SELECTION_MULTIPLE)
# Dictionary of 'header' or 'name' to ListViewColumn object # Dictionary of 'header' or 'name' to ListViewColumn object