BaseQtViewerWidget

class glue.viewers.common.qt.base_widget.BaseQtViewerWidget(parent=None)[source]

Bases: PyQt5.QtWidgets.QMainWindow

Base Qt class for all DataViewer widgets. This is not a viewer class in itself but is the base widget that should be used for any Qt viewer that is to appear inside the MDI area.

Attributes Summary

position

The location of the viewer as a tuple of (x, y)

toolbar_added()

viewer_size

Size of the viewer as a tuple of (width, height)

window_closed()

window_title

Methods Summary

close(self[, warn])

closeEvent(self, event)

Call unregister on window close

dragEnterEvent(self, event)

Accept drag-and-drop of data or subset objects.

dropEvent(self, event)

Accept drag-and-drop of data or subset objects.

isVisible(self)

layer_view(self)

mdi_wrap(self)

Wrap this object in a GlueMdiSubWindow

mousePressEvent(self, event)

Consume mouse press events, and prevent them from propagating down to the MDI area.

move(self[, x, y])

Move the viewer to a new XY pixel location

options_widget(self)

set_focus(self, state)

set_status(self, message)

update_window_title(self)

Attributes Documentation

position[source]

The location of the viewer as a tuple of (x, y)

toolbar_added
viewer_size[source]

Size of the viewer as a tuple of (width, height)

window_closed
window_title[source]

Methods Documentation

close(self, warn=True)[source]
closeEvent(self, event)[source]

Call unregister on window close

dragEnterEvent(self, event)[source]

Accept drag-and-drop of data or subset objects.

dropEvent(self, event)[source]

Accept drag-and-drop of data or subset objects.

isVisible(self)[source]
layer_view(self)[source]
mdi_wrap(self)[source]

Wrap this object in a GlueMdiSubWindow

mousePressEvent(self, event)[source]

Consume mouse press events, and prevent them from propagating down to the MDI area.

move(self, x=None, y=None)[source]

Move the viewer to a new XY pixel location

You can also set the position attribute to a new tuple directly.

Parameters
xint (optional)

New x position

yint (optional)

New y position

options_widget(self)[source]
set_focus(self, state)[source]
set_status(self, message)[source]
update_window_title(self)[source]