DataViewer¶
-
class
glue.viewers.common.qt.data_viewer.DataViewer(session, state=None, parent=None)[source]¶ Bases:
glue.viewers.common.viewer.Viewer,glue.viewers.common.qt.base_widget.BaseQtViewerWidgetBase class for all Qt DataViewer widgets.
This defines a minimal interface, and implements the following:
* An automatic call to unregister on window close * Drag and drop support for adding data
Attributes Summary
Methods Summary
addToolBar(self, tb)addToolBar(self, QToolBar) addToolBar(self, str) -> QToolBar
add_data(self, data)add_subset(self, subset)apply_roi(self, roi)closeEvent(self, event)Call unregister on window close
hide_toolbars(self)Disable all the toolbars in the viewer.
initialize_toolbar(self)layer_view(self)set_focus(self, state)show_toolbars(self)Re-enable any toolbars that were hidden with hide_toolbars()
update_viewer_state(rec, context)warn(self, message, \*args, \*\*kwargs)Attributes Documentation
-
inherit_tools= True¶
-
large_data_size= None¶
-
subtools= {'save': []}¶
-
tools= ['save']¶
Methods Documentation
-
hide_toolbars(self)[source]¶ Disable all the toolbars in the viewer.
This action can be reversed by calling show_toolbars()
-