Module ImportFrom alias alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore ListLoad Str ClassDef bases NameLoad AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Num Num Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args defaults Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr orelse If Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BoolOpOr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call AttributeLoad NameLoad attr Return TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr body Assign NameStore BinOpBitOr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Return CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpBitOr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ absolute_import division print_function N/A os glue.external.qt.QtCore Qt glue.external.qt QtGui glue.core.application_base ViewerBase glue.core.qt.layer_artist_model QtLayerArtistContainer LayerArtistWidget glue.external.qt get_qapp glue.core.qt.mime LAYERS_MIME_TYPE LAYER_MIME_TYPE glue.utils.qt set_cursor N/A __all__ N/A DataViewer DataViewer N/A ViewerBase N/A QtGui QMainWindow N/A N/A Base 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
     N/A _layer_artist_container_cls QtLayerArtistContainer N/A _layer_style_widget_cls None N/A LABEL Override this __init__ N/A N/A self session parent N/A None N/A N/A 
        :type session: :class:`~glue.core.Session`
         N/A N/A N/A N/A QtGui QMainWindow __init__ self parent N/A N/A N/A ViewerBase __init__ self session N/A N/A N/A self setWindowIcon N/A N/A N/A get_qapp windowIcon N/A N/A self _view N/A LayerArtistWidget layer_style_widget_cls N/A self _layer_style_widget_cls N/A N/A N/A N/A N/A self _view layer_list setModel N/A N/A self _layer_artist_container model N/A N/A self _tb_vis N/A N/A N/A N/A self setAttribute N/A Qt WA_DeleteOnClose N/A N/A N/A self setAcceptDrops True N/A N/A N/A self setAnimated False N/A N/A self _toolbars N/A N/A N/A self _warn_close True N/A N/A N/A self setContentsMargins 2 2 2 2 N/A N/A self _mdi_wrapper None N/A N/A N/A N/A N/A self statusBar setStyleSheet QStatusBar{font-size:10px} N/A N/A N/A N/A self _layer_artist_container on_empty N/A N/A N/A N/A N/A N/A self close warn False N/A N/A N/A N/A self _layer_artist_container on_changed N/A self update_window_title N/A remove_layer N/A N/A self layer N/A N/A N/A N/A N/A N/A self _layer_artist_container pop layer N/A dragEnterEvent N/A N/A self event N/A N/A N/A  Accept the event if it has data layers N/A N/A N/A N/A N/A event mimeData hasFormat LAYER_MIME_TYPE N/A N/A N/A N/A event accept N/A N/A N/A N/A N/A N/A event mimeData hasFormat LAYERS_MIME_TYPE N/A N/A N/A N/A event accept N/A N/A N/A N/A event ignore N/A dropEvent N/A N/A self event N/A N/A N/A  Add layers to the viewer if contained in mime data  N/A N/A N/A N/A N/A event mimeData hasFormat LAYER_MIME_TYPE N/A N/A N/A N/A self request_add_layer N/A N/A N/A N/A event mimeData data LAYER_MIME_TYPE N/A N/A N/A N/A N/A event mimeData hasFormat LAYERS_MIME_TYPE N/A layer N/A N/A N/A N/A event mimeData data LAYERS_MIME_TYPE N/A N/A N/A N/A self request_add_layer layer N/A N/A N/A event accept N/A mousePressEvent N/A N/A self event N/A N/A N/A  Consume mouse press events, and prevent them from propagating
            down to the MDI area  N/A N/A N/A event accept N/A N/A apply_roi N/A N/A set_cursor N/A Qt WaitCursor N/A ViewerBase apply_roi close N/A N/A self warn N/A True N/A N/A N/A self _warn_close warn N/A N/A N/A N/A super DataViewer self close N/A N/A self _warn_close True N/A mdi_wrap N/A N/A self N/A N/A N/A Wrap this object in a GlueMdiSubWindow glue.app.qt.mdi_area GlueMdiSubWindow N/A sub N/A GlueMdiSubWindow N/A N/A N/A sub setWidget self N/A N/A N/A N/A self destroyed connect N/A sub close N/A N/A N/A sub resize N/A N/A self size N/A N/A self _mdi_wrapper sub N/A sub N/A position N/A N/A self N/A N/A N/A target N/A N/A self _mdi_wrapper self N/A pos N/A N/A target pos N/A N/A N/A N/A pos x N/A N/A pos y N/A property position N/A N/A self xy N/A N/A N/A N/A x y xy N/A N/A N/A self move x y N/A N/A position setter move N/A N/A self x y N/A None None N/A N/A 
        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
         N/A N/A x0 y0 N/A self position N/A N/A x None N/A N/A x x0 N/A N/A y None N/A N/A y y0 N/A N/A N/A self _mdi_wrapper None N/A N/A N/A N/A N/A self _mdi_wrapper move x y N/A N/A N/A N/A N/A QtGui QMainWindow move self x y N/A viewer_size N/A N/A self N/A N/A N/A N/A N/A self _mdi_wrapper None N/A N/A sz N/A N/A N/A self _mdi_wrapper size N/A N/A sz N/A N/A self size N/A N/A N/A N/A sz width N/A N/A sz height N/A property viewer_size N/A N/A self value N/A N/A N/A N/A width height value N/A N/A N/A self resize width height N/A N/A N/A self _mdi_wrapper None N/A N/A N/A N/A N/A self _mdi_wrapper resize width height N/A N/A viewer_size setter closeEvent N/A N/A self event N/A N/A N/A  Call unregister on window close  N/A N/A N/A N/A self _confirm_close N/A N/A N/A N/A event ignore N/A N/A N/A N/A self _hub None N/A N/A N/A N/A self unregister N/A self _hub N/A N/A N/A N/A self _layer_artist_container clear_callbacks N/A N/A N/A N/A self _layer_artist_container clear N/A N/A N/A N/A super DataViewer self closeEvent event N/A N/A N/A event accept N/A _confirm_close N/A N/A self N/A N/A N/A Ask for close confirmation

        :rtype: bool. True if user wishes to close. False otherwise
         N/A N/A N/A self _warn_close N/A N/A N/A N/A os environ get GLUE_TESTING N/A N/A self isVisible N/A N/A buttons N/A N/A N/A QtGui QMessageBox Ok N/A N/A QtGui QMessageBox Cancel N/A dialog N/A N/A N/A QtGui QMessageBox warning self Confirm Close Do you want to close this window? buttons buttons defaultButton N/A N/A QtGui QMessageBox Cancel N/A N/A dialog N/A N/A QtGui QMessageBox Ok N/A True N/A _confirm_large_data N/A N/A self data N/A N/A N/A warn_msg N/A WARNING: Data set has %i points, and may render slowly. Continue? N/A data size N/A title Add large data set? N/A ok N/A N/A QtGui QMessageBox Ok N/A cancel N/A N/A QtGui QMessageBox Cancel N/A buttons N/A ok cancel N/A result N/A N/A N/A QtGui QMessageBox question self title warn_msg buttons buttons defaultButton cancel N/A N/A result ok N/A layer_view N/A N/A self N/A N/A N/A N/A self _view N/A options_widget N/A N/A self N/A N/A N/A N/A N/A QtGui QWidget N/A addToolBar N/A N/A self tb N/A N/A N/A N/A N/A N/A super DataViewer self addToolBar tb N/A N/A N/A N/A self _toolbars append tb N/A N/A N/A self _tb_vis N/A tb True N/A show_toolbars N/A N/A self N/A N/A N/A Re-enable any toolbars that were hidden with `hide_toolbars()`

        Does not re-enable toolbars that were hidden by other means
         N/A tb N/A self _toolbars N/A N/A N/A N/A N/A self _tb_vis get tb False N/A N/A N/A N/A tb setEnabled True N/A hide_toolbars N/A N/A self N/A N/A N/A  Disable all the toolbars in the viewer.

        This action can be reversed by calling `show_toolbars()`
         N/A tb N/A self _toolbars N/A N/A N/A N/A self _tb_vis N/A tb N/A N/A N/A N/A self _tb_vis get tb False N/A N/A tb isVisible N/A N/A N/A tb setEnabled False N/A set_focus N/A N/A self state N/A N/A N/A state N/A N/A css 
            DataViewer
            {
            border: 2px solid;
            border-color: rgb(56, 117, 215);
            }
             N/A N/A N/A self setStyleSheet css N/A N/A N/A self show_toolbars N/A N/A css 
            DataViewer
            {
            border: none;
            }
             N/A N/A N/A self setStyleSheet css N/A N/A N/A self hide_toolbars N/A __str__ N/A N/A self N/A N/A N/A N/A self LABEL N/A unregister N/A N/A self hub N/A N/A N/A 
        Override to perform cleanup operations when disconnecting from hub
         N/A N/A window_title N/A N/A self N/A N/A N/A N/A str self N/A property update_window_title N/A N/A self N/A N/A N/A N/A N/A self setWindowTitle N/A self window_title N/A N/A