TableViewer

class glue.viewers.table.qt.TableViewer(*args, **kwargs)

Bases: DataViewer

Attributes Summary

LABEL

inherit_tools

tools

window_title

Methods Summary

add_data(data)

add_subset(subset)

closeEvent(event)

On close, Qt seems to scan through the entire model if the data set is big.

finalize_selection([clear])

get_layer_artist(cls[, layer, layer_state])

keyPressEvent(self, QKeyEvent)

selection_changed()

update_viewer_state(rec, context)

Attributes Documentation

LABEL = 'Table Viewer'
inherit_tools = False
tools = ['table:rowselect']
window_title

Methods Documentation

add_data(data)
add_subset(subset)
closeEvent(event)

On close, Qt seems to scan through the entire model if the data set is big. To sidestep that, we swap out with a tiny data set before closing

finalize_selection(clear=True)
get_layer_artist(cls, layer=None, layer_state=None)
keyPressEvent(self, QKeyEvent)
selection_changed()
static update_viewer_state(rec, context)