DataViewer¶
-
class
glue.viewers.common.qt.data_viewer.DataViewer(session, parent=None)[source]¶ Bases:
glue.core.application_base.ViewerBase,PyQt4.QtGui.QMainWindowBase class for all Qt DataViewer widgets.
This defines a minimal interface, and implemlements the following:
* An automatic call to unregister on window close * Drag and drop support for adding data
Attributes Summary
LABELpositionviewer_sizewindow_titleMethods Summary
addToolBar(tb)apply_roi(*args, **kwargs)Apply an ROI to the client close([warn])closeEvent(event)Call unregister on window close dragEnterEvent(event)Accept the event if it has data layers dropEvent(event)Add layers to the viewer if contained in mime data hide_toolbars()Disable all the toolbars in the viewer. layer_view()mdi_wrap()Wrap this object in a GlueMdiSubWindow mousePressEvent(event)Consume mouse press events, and prevent them from propagating move([x, y])Move the viewer to a new XY pixel location options_widget()remove_layer(layer)set_focus(state)show_toolbars()Re-enable any toolbars that were hidden with hide_toolbars() unregister(hub)Override to perform cleanup operations when disconnecting from hub update_window_title()Attributes Documentation
-
LABEL= 'Override this'¶
-
position¶
-
viewer_size¶
-
window_title¶
Methods Documentation
-
hide_toolbars()[source]¶ Disable all the toolbars in the viewer.
This action can be reversed by calling show_toolbars()
-
mousePressEvent(event)[source]¶ Consume mouse press events, and prevent them from propagating down to the MDI area
-
move(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: x : int (optional)
New x position
y : int (optional)
New y position
-