TableViewer

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

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

Attributes Summary

LABEL

inherit_tools

tools

window_title

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)

selection_changed(self)

update_viewer_state(rec, context)

Attributes Documentation

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

Methods Documentation

add_data(self, data)
closeEvent(self, 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(self, clear=True)
get_layer_artist(self, cls, layer=None, layer_state=None)
keyPressEvent(self, QKeyEvent)
selection_changed(self)
static update_viewer_state(rec, context)