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

inherit_tools

large_data_size

selected_layer

subtools

tools

Methods Summary

addToolBar(-> None)

add_data(data)

add_subset(subset)

apply_roi(roi)

closeEvent(event)

Call unregister on window close

hide_toolbars()

Disable all the toolbars in the viewer.

initialize_toolbar()

layer_view()

remove_all_toolbars()

remove_toolbar(tb)

set_focus(state)

show_toolbars()

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#
selected_layer[source]#
subtools = {'save': [], 'window': ['window:movetab', 'window:title']}#
tools = ['save', 'window']#

Methods Documentation

addToolBar(self, area: Qt.ToolBarArea, toolbar: QToolBar)[source]#
addToolBar(self, toolbar: QToolBar) None
addToolBar(self, title: str) QToolBar
add_data(data)[source]#
add_subset(subset)[source]#
apply_roi(roi)[source]#
closeEvent(event)[source]#

Call unregister on window close

hide_toolbars()[source]#

Disable all the toolbars in the viewer.

This action can be reversed by calling show_toolbars()

initialize_toolbar()[source]#
layer_view()[source]#
remove_all_toolbars()[source]#
remove_toolbar(tb)[source]#
set_focus(state)[source]#
show_toolbars()[source]#

Re-enable any toolbars that were hidden with hide_toolbars()

Does not re-enable toolbars that were hidden by other means

update_viewer_state(context)[source]#
warn(message, *args, **kwargs)[source]#