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
The location of the viewer as a tuple of
(x, y)
Size of the viewer as a tuple of
(width, height)
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
-
toolbar_added
¶
-
window_closed
¶
Methods Documentation
-
mousePressEvent
(self, event)[source]¶ Consume mouse press events, and prevent them from propagating down to the MDI area.
-