TableViewer

class glue.viewers.table.qt.TableViewer(session, state=None, parent=None, widget=None)[source]

Bases: glue.viewers.common.qt.data_viewer.DataViewer

Attributes Summary

LABEL

tools

Methods Summary

add_data(self, data)

closeEvent(self, event)

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

finalize_selection(self[, clear])

get_layer_artist(self, cls[, layer, layer_state])

keyPressEvent(self, QKeyEvent)

layer_view(self)

selection_changed(self)

update_viewer_state(rec, context)

Attributes Documentation

LABEL = 'Table Viewer'
tools = ['table:rowselect']

Methods Documentation

add_data(self, data)[source]
closeEvent(self, event)[source]

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(self, clear=True)[source]
get_layer_artist(self, cls, layer=None, layer_state=None)[source]
keyPressEvent(self, QKeyEvent)[source]
layer_view(self)[source]
selection_changed(self)[source]
static update_viewer_state(rec, context)[source]