API#
User Interface#
glue_qt.viewers.common.data_viewer Module#
Functions#
|
Given a viewer class, find all the tools and subtools to include in the viewer. |
Classes#
|
Base class for all Qt DataViewer widgets. |
glue_qt.viewers.common.base_widget Module#
glue_qt.viewers.matplotlib.data_viewer Module#
Classes#
|
glue_qt.viewers.matplotlib.toolbar_mode Module#
Classes#
|
Uses right mouse button drags to set bias and contrast, DS9-style. |
|
A tool to change the colormap used in a viewer. |
glue_qt.viewers.common.toolbar Module#
glue_qt.viewers.matplotlib.toolbar Module#
Classes#
|
|
|
|
|
|
|
|
|
|
|
glue_qt.viewers.scatter Package#
Functions#
|
Classes#
|
glue_qt.viewers.profile Package#
Functions#
|
Classes#
|
glue_qt.viewers.image Package#
Functions#
|
Classes#
|
glue_qt.viewers.histogram Package#
Functions#
|
Classes#
|
glue_qt.viewers.table Package#
Functions#
|
Classes#
|
Create a new LayerArtist |
|
|
glue_qt.viewers.custom.custom_viewer Module#
This module provides utilities for creating custom data viewers. The goal of this module is to make it easy for users to make new data viewers by focusing on matplotlib visualization logic, and not UI or event processing logic.
The end user typically interacts with this code via glue.custom_viewer()
Classes#
An array subclass wrapping a Component of a dataset It is an array with the following additional attributes: |
|
Empty object for users to store data inside. |
|
|
Descriptor to specify a UserDefinedFunction. |
|
Base class for custom data viewers. |
|
Metaclass to construct CustomViewer and subclasses |
|
A SubsetState subclass that uses a CustomViewer's "select" function |
|
Base class for custom data viewers. |
|
LayerArtist for simple custom viewers that use Matplotlib |
|
Base Qt widget class for simple custom viewers that use Matplotlib |
glue_qt.app.application Module#
Classes#
|
The main GUI application for the Qt frontend |
glue_qt Package#
Functions#
|
Quickly send python variables to Glue for visualization. |
Utilities#
glue_qt.utils Package#
Functions#
|
Convert a matplotlib colormap into a QPixmap |
|
Return the text labels of a combo box as a string to make it easier to check the content of a combo box in tests. |
|
|
|
Because of a bug in Qt, tab titles on MacOS X don't have the right font size |
|
|
|
Prompt the user to enter text using Qt |
|
Load a .ui file |
|
Convert a matplotlib color string into a Qt QColor object |
|
Prompt the user to pick from a list of classes using Qt |
|
Prompt the user to choose an item |
|
Context manager to automatically capture the active dialog and carry out certain actions. |
|
|
|
Convert a QColor object into a string that matplotlib understands |
|
Convert a local QUrl to a normal path |
|
Set the Qt cursor for the duration of a function call, and unset |
|
Context manager equivalent for |
|
Re-color a monochrome pixmap object using color |
|
Redefine the items in a QComboBox |
Updates the global font size through the current UI backend |
Classes#
A dialog that is centered on the screen. |
|
|
|
|
|
|
A mixin for QtWidgets.QListWidget/GlueTreeWidget subclasses, that provides drag+drop functionality. |
|
|
An item delegate that can be used for e.g. |
|
|
A custom MimeData object that stores live python objects |
|
A Qt Model that wraps a python list, and exposes a list-like interface |
|
|
|
|
|
glue_qt.utils.widget_properties Module#
The classes in this module provide a property-like interface to widget instance variables in a class. These properties translate essential pieces of widget state into more convenient python objects (for example, the check state of a button to a bool).
Example Use:
class Foo(object):
bar = ButtonProperty('_button')
def __init__(self):
self._button = QtWidgets.QCheckBox()
f = Foo()
f.bar = True # equivalent to f._button.setChecked(True)
assert f.bar == True
Classes#
|
Base class for widget properties |
|
Wrapper around the data in QComboBox. |
|
Wrapper around the text in QComboBox. |
|
Wrapper around QTabWidget. |
|
Wrapper around the text() and setText() methods for QLabel etc |
|
Wrapper around the check state for QAbstractButton widgets |
|
Wrapper around the text state for QLineEdit widgets. |
|
Wrapper around widgets with value() and setValue() |
Configuration#
glue_qt.config Module#
Classes#
Stores QT widgets to visualize data. |
|
Stores custom menu actions available when the user select one or more datasets, subset group, or subset in the data collection view. |
|
Stores preference panes |
|
Stores Qt pre-defined tabs (non-MDI) |
|
Stores keyboard shortcuts. |