DataViewer#
- class glue_qt.viewers.common.data_viewer.DataViewer(*args, **kwargs)[source]#
Bases:
Viewer
,BaseQtViewerWidget
Base 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
(-> None)add_data
(data)add_subset
(subset)apply_roi
(roi)closeEvent
(event)Call unregister on window close
Disable all the toolbars in the viewer.
remove_toolbar
(tb)set_focus
(state)Re-enable any toolbars that were hidden with hide_toolbars()
update_viewer_state
(context)warn
(message, *args, **kwargs)Attributes Documentation
- inherit_tools = True#
- large_data_size = None#
- subtools = {'save': [], 'window': ['window:movetab', 'window:title']}#
- tools = ['save', 'window']#
Methods Documentation
- addToolBar(self, area: Qt.ToolBarArea, toolbar: QToolBar | None)[source]#
- addToolBar(self, toolbar: QToolBar | None) None
- addToolBar(self, title: str | None) QToolBar | None
- hide_toolbars()[source]#
Disable all the toolbars in the viewer.
This action can be reversed by calling show_toolbars()