Table Of Contents

Previous topic

Making executable Windows programs

This Page

GUIQwt reference

guiqwt.panels

The panels module provides guiqwt.curve.PanelWidget (the panel widget class from which all panels must derived) and identifiers for each kind of panel:

  • guiqwt.panels.ID_ITEMLIST: ID of the item list panel
  • guiqwt.panels.ID_CONTRAST: ID of the contrast adjustment panel
  • guiqwt.panels.ID_XCS: ID of the X-axis cross section panel
  • guiqwt.panels.ID_YCS: ID of the Y-axis cross section panel

See also

Module guiqwt.plot
Module providing ready-to-use curve and image plotting widgets and dialog boxes
Module guiqwt.curve
Module providing curve-related plot items and plotting widgets
Module guiqwt.image
Module providing image-related plot items and plotting widgets
Module guiqwt.tools
Module providing the plot tools

guiqwt.signals

The signals module contains constants defining the custom Qt SIGNAL objects used by guiqwt: the signals definition are gathered here to avoid mispelling signals at connect and emit sites.

Signals available:
guiqwt.signals.SIG_ITEM_MOVED

Emitted by plot when an IBasePlotItem-like object was moved from (x0, y0) to (x1, y1)

Arguments: item object, x0, y0, x1, y1

guiqwt.signals.SIG_MARKER_CHANGED

Emitted by plot when a guiqwt.shapes.Marker position changes

Arguments: guiqwt.shapes.Marker object

guiqwt.signals.SIG_AXES_CHANGED

Emitted by plot when a guiqwt.shapes.Axes position (or angle) changes

Arguments: guiqwt.shapes.Axes object

guiqwt.signals.SIG_ANNOTATION_CHANGED

Emitted by plot when an annotations.AnnotatedShape position changes

Arguments: annotation item

guiqwt.signals.SIG_RANGE_CHANGED

Emitted by plot when a shapes.XRangeSelection range changes

Arguments: range object, lower_bound, upper_bound

guiqwt.signals.SIG_ITEMS_CHANGED

Emitted by plot when item list has changed (item removed, added, ...)

Arguments: plot

guiqwt.signals.SIG_ACTIVE_ITEM_CHANGED

Emitted by plot when selected item has changed

Arguments: plot

guiqwt.signals.SIG_ITEM_REMOVED

Emitted by plot when an item was deleted from the itemlist or using the delete item tool

Arguments: removed item

guiqwt.signals.SIG_ITEM_SELECTION_CHANGED

Emitted by plot when an item is selected

Arguments: plot

guiqwt.signals.SIG_PLOT_LABELS_CHANGED

Emitted (by plot) when plot’s title or any axis label has changed

Arguments: plot

guiqwt.signals.SIG_AXIS_DIRECTION_CHANGED

Emitted (by plot) when any plot axis direction has changed

Arguments: plot

guiqwt.signals.SIG_VOI_CHANGED
Emitted by “contrast” panel’s histogram when the lut range of some items changed (for now, this signal is for guiqwt.histogram module’s internal use only - the ‘public’ counterpart of this signal is SIG_LUT_CHANGED, see below)
guiqwt.signals.SIG_LUT_CHANGED

Emitted by plot when LUT has been changed by the user

Arguments: plot

guiqwt.signals.SIG_MASK_CHANGED

Emitted by plot when image mask has changed

Arguments: MaskedImageItem object

guiqwt.signals.SIG_VISIBILITY_CHANGED

Emitted for example by panels when their visibility has changed

Arguments: state (boolean)

guiqwt.signals.SIG_VALIDATE_TOOL

Emitted by an interactive tool to notify that the tool has just been “validated”, i.e. <ENTER>, <RETURN> or <SPACE> was pressed

Arguments: filter

guiqwt.io

The io module provides input/output helper functions:

Reference

guiqwt.io.imread(fname, ext=None, to_grayscale=False)[source]

Return a NumPy array from an image filename fname.

If to_grayscale is True, convert RGB images to grayscale The ext (optional) argument is a string that specifies the file extension which defines the input format: when not specified, the input format is guessed from filename.

guiqwt.io.imwrite(fname, arr, ext=None, dtype=None, max_range=None, **kwargs)[source]

Save a NumPy array to an image filename fname.

If to_grayscale is True, convert RGB images to grayscale The ext (optional) argument is a string that specifies the file extension which defines the input format: when not specified, the input format is guessed from filename. If max_range is True, array data is scaled to fit the dtype (or data type itself if dtype is None) dynamic range Warning: option max_range changes data in place

guiqwt.io.load_items(reader)[source]

Load items from HDF5 file: * reader: guidata.hdf5io.HDF5Reader object

guiqwt.io.save_items(writer, items)[source]

Save items to HDF5 file: * writer: guidata.hdf5io.HDF5Writer object * items: serializable plot items

resizedialog

The resizedialog module provides a dialog box providing essential GUI for entering parameters needed to resize an image: guiqwt.widgets.resizedialog.ResizeDialog.

Reference

class guiqwt.widgets.resizedialog.ResizeDialog(parent, new_size, old_size, text='')[source]
class RenderFlags

QWidget.RenderFlags(QWidget.RenderFlags) QWidget.RenderFlags(int) QWidget.RenderFlags()

ResizeDialog.accept()
ResizeDialog.acceptDrops() → bool
ResizeDialog.accepted

QDialog.accepted [signal]

ResizeDialog.accessibleDescription() → QString
ResizeDialog.accessibleName() → QString
ResizeDialog.actionEvent(QActionEvent)
ResizeDialog.actions() → list-of-QAction
ResizeDialog.activateWindow()
ResizeDialog.addAction(QAction)
ResizeDialog.addActions(list-of-QAction)
ResizeDialog.adjustSize()
ResizeDialog.autoFillBackground() → bool
ResizeDialog.backgroundRole() → QPalette.ColorRole
ResizeDialog.baseSize() → QSize
ResizeDialog.blockSignals(bool) → bool
ResizeDialog.changeEvent(QEvent)
ResizeDialog.childAt(QPoint) → QWidget

QWidget.childAt(int, int) -> QWidget

ResizeDialog.childEvent(QChildEvent)
ResizeDialog.children() → list-of-QObject
ResizeDialog.childrenRect() → QRect
ResizeDialog.childrenRegion() → QRegion
ResizeDialog.clearFocus()
ResizeDialog.clearMask()
ResizeDialog.close() → bool
ResizeDialog.closeEvent(QCloseEvent)
ResizeDialog.colorCount() → int
ResizeDialog.connect(QObject, SIGNAL(), QObject, SLOT(), Qt.ConnectionType=Qt.AutoConnection) → bool

QObject.connect(QObject, SIGNAL(), callable, Qt.ConnectionType=Qt.AutoConnection) -> bool QObject.connect(QObject, SIGNAL(), SLOT(), Qt.ConnectionType=Qt.AutoConnection) -> bool

ResizeDialog.connectNotify(SIGNAL())
ResizeDialog.contentsMargins() → QMargins
ResizeDialog.contentsRect() → QRect
ResizeDialog.contextMenuEvent(QContextMenuEvent)
ResizeDialog.contextMenuPolicy() → Qt.ContextMenuPolicy
ResizeDialog.create(int window=0, bool initializeWindow=True, bool destroyOldWindow=True)
ResizeDialog.cursor() → QCursor
ResizeDialog.customContextMenuRequested

QWidget.customContextMenuRequested[QPoint] [signal]

ResizeDialog.customEvent(QEvent)
ResizeDialog.deleteLater()
ResizeDialog.depth() → int
ResizeDialog.destroy(bool destroyWindow=True, bool destroySubWindows=True)
ResizeDialog.destroyed

QObject.destroyed[QObject] [signal] QObject.destroyed [signal]

ResizeDialog.devType() → int
ResizeDialog.disconnect(QObject, SIGNAL(), QObject, SLOT()) → bool

QObject.disconnect(QObject, SIGNAL(), callable) -> bool

ResizeDialog.disconnectNotify(SIGNAL())
ResizeDialog.done(int)
ResizeDialog.dragEnterEvent(QDragEnterEvent)
ResizeDialog.dragLeaveEvent(QDragLeaveEvent)
ResizeDialog.dragMoveEvent(QDragMoveEvent)
ResizeDialog.dropEvent(QDropEvent)
ResizeDialog.dumpObjectInfo()
ResizeDialog.dumpObjectTree()
ResizeDialog.dynamicPropertyNames() → list-of-QByteArray
ResizeDialog.effectiveWinId() → int
ResizeDialog.emit(SIGNAL(), ...)
ResizeDialog.enabledChange(bool)
ResizeDialog.ensurePolished()
ResizeDialog.enterEvent(QEvent)
ResizeDialog.event(QEvent) → bool
ResizeDialog.eventFilter(QObject, QEvent) → bool
ResizeDialog.exec_() → int
ResizeDialog.extension() → QWidget
ResizeDialog.find(int) → QWidget
ResizeDialog.findChild(type, QString name=QString()) → QObject

QObject.findChild(tuple, QString name=QString()) -> QObject

ResizeDialog.findChildren(type, QString name=QString()) → list-of-QObject

QObject.findChildren(tuple, QString name=QString()) -> list-of-QObject QObject.findChildren(type, QRegExp) -> list-of-QObject QObject.findChildren(tuple, QRegExp) -> list-of-QObject

ResizeDialog.finished

QDialog.finished[int] [signal]

ResizeDialog.focusInEvent(QFocusEvent)
ResizeDialog.focusNextChild() → bool
ResizeDialog.focusNextPrevChild(bool) → bool
ResizeDialog.focusOutEvent(QFocusEvent)
ResizeDialog.focusPolicy() → Qt.FocusPolicy
ResizeDialog.focusPreviousChild() → bool
ResizeDialog.focusProxy() → QWidget
ResizeDialog.focusWidget() → QWidget
ResizeDialog.font() → QFont
ResizeDialog.fontChange(QFont)
ResizeDialog.fontInfo() → QFontInfo
ResizeDialog.fontMetrics() → QFontMetrics
ResizeDialog.foregroundRole() → QPalette.ColorRole
ResizeDialog.frameGeometry() → QRect
ResizeDialog.frameSize() → QSize
ResizeDialog.geometry() → QRect
ResizeDialog.getContentsMargins() -> (int, int, int, int)
ResizeDialog.grabGesture(Qt.GestureType, Qt.GestureFlags flags=Qt.GestureFlags(0))
ResizeDialog.grabKeyboard()
ResizeDialog.grabMouse()

QWidget.grabMouse(QCursor)

ResizeDialog.grabShortcut(QKeySequence, Qt.ShortcutContext context=Qt.WindowShortcut) → int
ResizeDialog.graphicsEffect() → QGraphicsEffect
ResizeDialog.graphicsProxyWidget() → QGraphicsProxyWidget
ResizeDialog.handle() → int
ResizeDialog.hasFocus() → bool
ResizeDialog.hasMouseTracking() → bool
ResizeDialog.height() → int
ResizeDialog.heightForWidth(int) → int
ResizeDialog.heightMM() → int
ResizeDialog.hide()
ResizeDialog.hideEvent(QHideEvent)
ResizeDialog.inherits(str) → bool
ResizeDialog.inputContext() → QInputContext
ResizeDialog.inputMethodEvent(QInputMethodEvent)
ResizeDialog.inputMethodHints() → Qt.InputMethodHints
ResizeDialog.inputMethodQuery(Qt.InputMethodQuery) → QVariant
ResizeDialog.insertAction(QAction, QAction)
ResizeDialog.insertActions(QAction, list-of-QAction)
ResizeDialog.installEventFilter(QObject)
ResizeDialog.isActiveWindow() → bool
ResizeDialog.isAncestorOf(QWidget) → bool
ResizeDialog.isEnabled() → bool
ResizeDialog.isEnabledTo(QWidget) → bool
ResizeDialog.isEnabledToTLW() → bool
ResizeDialog.isFullScreen() → bool
ResizeDialog.isHidden() → bool
ResizeDialog.isLeftToRight() → bool
ResizeDialog.isMaximized() → bool
ResizeDialog.isMinimized() → bool
ResizeDialog.isModal() → bool
ResizeDialog.isRightToLeft() → bool
ResizeDialog.isSizeGripEnabled() → bool
ResizeDialog.isTopLevel() → bool
ResizeDialog.isVisible() → bool
ResizeDialog.isVisibleTo(QWidget) → bool
ResizeDialog.isWidgetType() → bool
ResizeDialog.isWindow() → bool
ResizeDialog.isWindowModified() → bool
ResizeDialog.keyPressEvent(QKeyEvent)
ResizeDialog.keyReleaseEvent(QKeyEvent)
ResizeDialog.keyboardGrabber() → QWidget
ResizeDialog.killTimer(int)
ResizeDialog.languageChange()
ResizeDialog.layout() → QLayout
ResizeDialog.layoutDirection() → Qt.LayoutDirection
ResizeDialog.leaveEvent(QEvent)
ResizeDialog.locale() → QLocale
ResizeDialog.logicalDpiX() → int
ResizeDialog.logicalDpiY() → int
ResizeDialog.lower()
ResizeDialog.mapFrom(QWidget, QPoint) → QPoint
ResizeDialog.mapFromGlobal(QPoint) → QPoint
ResizeDialog.mapFromParent(QPoint) → QPoint
ResizeDialog.mapTo(QWidget, QPoint) → QPoint
ResizeDialog.mapToGlobal(QPoint) → QPoint
ResizeDialog.mapToParent(QPoint) → QPoint
ResizeDialog.mask() → QRegion
ResizeDialog.maximumHeight() → int
ResizeDialog.maximumSize() → QSize
ResizeDialog.maximumWidth() → int
ResizeDialog.metaObject() → QMetaObject
ResizeDialog.metric(QPaintDevice.PaintDeviceMetric) → int
ResizeDialog.minimumHeight() → int
ResizeDialog.minimumSize() → QSize
ResizeDialog.minimumSizeHint() → QSize
ResizeDialog.minimumWidth() → int
ResizeDialog.mouseDoubleClickEvent(QMouseEvent)
ResizeDialog.mouseGrabber() → QWidget
ResizeDialog.mouseMoveEvent(QMouseEvent)
ResizeDialog.mousePressEvent(QMouseEvent)
ResizeDialog.mouseReleaseEvent(QMouseEvent)
ResizeDialog.move(QPoint)

QWidget.move(int, int)

ResizeDialog.moveEvent(QMoveEvent)
ResizeDialog.moveToThread(QThread)
ResizeDialog.nativeParentWidget() → QWidget
ResizeDialog.nextInFocusChain() → QWidget
ResizeDialog.normalGeometry() → QRect
ResizeDialog.numColors() → int
ResizeDialog.objectName() → QString
ResizeDialog.open()
ResizeDialog.orientation() → Qt.Orientation
ResizeDialog.overrideWindowFlags(Qt.WindowFlags)
ResizeDialog.overrideWindowState(Qt.WindowStates)
ResizeDialog.paintEngine() → QPaintEngine
ResizeDialog.paintEvent(QPaintEvent)
ResizeDialog.paintingActive() → bool
ResizeDialog.palette() → QPalette
ResizeDialog.paletteChange(QPalette)
ResizeDialog.parent() → QObject
ResizeDialog.parentWidget() → QWidget
ResizeDialog.physicalDpiX() → int
ResizeDialog.physicalDpiY() → int
ResizeDialog.pos() → QPoint
ResizeDialog.previousInFocusChain() → QWidget
ResizeDialog.property(str) → QVariant
ResizeDialog.pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

ResizeDialog.raise_()
ResizeDialog.receivers(SIGNAL()) → int
ResizeDialog.rect() → QRect
ResizeDialog.reject()
ResizeDialog.rejected

QDialog.rejected [signal]

ResizeDialog.releaseKeyboard()
ResizeDialog.releaseMouse()
ResizeDialog.releaseShortcut(int)
ResizeDialog.removeAction(QAction)
ResizeDialog.removeEventFilter(QObject)
ResizeDialog.render(QPaintDevice, QPoint targetOffset=QPoint(), QRegion sourceRegion=QRegion(), QWidget.RenderFlags flags=QWidget.DrawWindowBackground|QWidget.DrawChildren)

QWidget.render(QPainter, QPoint targetOffset=QPoint(), QRegion sourceRegion=QRegion(), QWidget.RenderFlags flags=QWidget.DrawWindowBackground|QWidget.DrawChildren)

ResizeDialog.repaint()

QWidget.repaint(int, int, int, int) QWidget.repaint(QRect) QWidget.repaint(QRegion)

ResizeDialog.resetInputContext()
ResizeDialog.resize(QSize)

QWidget.resize(int, int)

ResizeDialog.resizeEvent(QResizeEvent)
ResizeDialog.restoreGeometry(QByteArray) → bool
ResizeDialog.result() → int
ResizeDialog.saveGeometry() → QByteArray
ResizeDialog.scroll(int, int)

QWidget.scroll(int, int, QRect)

ResizeDialog.sender() → QObject
ResizeDialog.senderSignalIndex() → int
ResizeDialog.setAcceptDrops(bool)
ResizeDialog.setAccessibleDescription(QString)
ResizeDialog.setAccessibleName(QString)
ResizeDialog.setAttribute(Qt.WidgetAttribute, bool on=True)
ResizeDialog.setAutoFillBackground(bool)
ResizeDialog.setBackgroundRole(QPalette.ColorRole)
ResizeDialog.setBaseSize(int, int)

QWidget.setBaseSize(QSize)

ResizeDialog.setContentsMargins(int, int, int, int)

QWidget.setContentsMargins(QMargins)

ResizeDialog.setContextMenuPolicy(Qt.ContextMenuPolicy)
ResizeDialog.setCursor(QCursor)
ResizeDialog.setDisabled(bool)
ResizeDialog.setEnabled(bool)
ResizeDialog.setExtension(QWidget)
ResizeDialog.setFixedHeight(int)
ResizeDialog.setFixedSize(QSize)

QWidget.setFixedSize(int, int)

ResizeDialog.setFixedWidth(int)
ResizeDialog.setFocus()

QWidget.setFocus(Qt.FocusReason)

ResizeDialog.setFocusPolicy(Qt.FocusPolicy)
ResizeDialog.setFocusProxy(QWidget)
ResizeDialog.setFont(QFont)
ResizeDialog.setForegroundRole(QPalette.ColorRole)
ResizeDialog.setGeometry(QRect)

QWidget.setGeometry(int, int, int, int)

ResizeDialog.setGraphicsEffect(QGraphicsEffect)
ResizeDialog.setHidden(bool)
ResizeDialog.setInputContext(QInputContext)
ResizeDialog.setInputMethodHints(Qt.InputMethodHints)
ResizeDialog.setLayout(QLayout)
ResizeDialog.setLayoutDirection(Qt.LayoutDirection)
ResizeDialog.setLocale(QLocale)
ResizeDialog.setMask(QBitmap)

QWidget.setMask(QRegion)

ResizeDialog.setMaximumHeight(int)
ResizeDialog.setMaximumSize(int, int)

QWidget.setMaximumSize(QSize)

ResizeDialog.setMaximumWidth(int)
ResizeDialog.setMinimumHeight(int)
ResizeDialog.setMinimumSize(int, int)

QWidget.setMinimumSize(QSize)

ResizeDialog.setMinimumWidth(int)
ResizeDialog.setModal(bool)
ResizeDialog.setMouseTracking(bool)
ResizeDialog.setObjectName(QString)
ResizeDialog.setOrientation(Qt.Orientation)
ResizeDialog.setPalette(QPalette)
ResizeDialog.setParent(QWidget)

QWidget.setParent(QWidget, Qt.WindowFlags)

ResizeDialog.setProperty(str, QVariant) → bool
ResizeDialog.setResult(int)
ResizeDialog.setShortcutAutoRepeat(int, bool enabled=True)
ResizeDialog.setShortcutEnabled(int, bool enabled=True)
ResizeDialog.setShown(bool)
ResizeDialog.setSizeGripEnabled(bool)
ResizeDialog.setSizeIncrement(int, int)

QWidget.setSizeIncrement(QSize)

ResizeDialog.setSizePolicy(QSizePolicy)

QWidget.setSizePolicy(QSizePolicy.Policy, QSizePolicy.Policy)

ResizeDialog.setStatusTip(QString)
ResizeDialog.setStyle(QStyle)
ResizeDialog.setStyleSheet(QString)
ResizeDialog.setTabOrder(QWidget, QWidget)
ResizeDialog.setToolTip(QString)
ResizeDialog.setUpdatesEnabled(bool)
ResizeDialog.setVisible(bool)
ResizeDialog.setWhatsThis(QString)
ResizeDialog.setWindowFilePath(QString)
ResizeDialog.setWindowFlags(Qt.WindowFlags)
ResizeDialog.setWindowIcon(QIcon)
ResizeDialog.setWindowIconText(QString)
ResizeDialog.setWindowModality(Qt.WindowModality)
ResizeDialog.setWindowModified(bool)
ResizeDialog.setWindowOpacity(float)
ResizeDialog.setWindowRole(QString)
ResizeDialog.setWindowState(Qt.WindowStates)
ResizeDialog.setWindowTitle(QString)
ResizeDialog.show()
ResizeDialog.showEvent(QShowEvent)
ResizeDialog.showExtension(bool)
ResizeDialog.showFullScreen()
ResizeDialog.showMaximized()
ResizeDialog.showMinimized()
ResizeDialog.showNormal()
ResizeDialog.signalsBlocked() → bool
ResizeDialog.size() → QSize
ResizeDialog.sizeHint() → QSize
ResizeDialog.sizeIncrement() → QSize
ResizeDialog.sizePolicy() → QSizePolicy
ResizeDialog.stackUnder(QWidget)
ResizeDialog.startTimer(int) → int
ResizeDialog.statusTip() → QString
ResizeDialog.style() → QStyle
ResizeDialog.styleSheet() → QString
ResizeDialog.tabletEvent(QTabletEvent)
ResizeDialog.testAttribute(Qt.WidgetAttribute) → bool
ResizeDialog.thread() → QThread
ResizeDialog.timerEvent(QTimerEvent)
ResizeDialog.toolTip() → QString
ResizeDialog.topLevelWidget() → QWidget
ResizeDialog.tr(str, str disambiguation=None, int n=-1) → QString
ResizeDialog.trUtf8(str, str disambiguation=None, int n=-1) → QString
ResizeDialog.underMouse() → bool
ResizeDialog.ungrabGesture(Qt.GestureType)
ResizeDialog.unsetCursor()
ResizeDialog.unsetLayoutDirection()
ResizeDialog.unsetLocale()
ResizeDialog.update()

QWidget.update(QRect) QWidget.update(QRegion) QWidget.update(int, int, int, int)

ResizeDialog.updateGeometry()
ResizeDialog.updateMicroFocus()
ResizeDialog.updatesEnabled() → bool
ResizeDialog.visibleRegion() → QRegion
ResizeDialog.whatsThis() → QString
ResizeDialog.wheelEvent(QWheelEvent)
ResizeDialog.width() → int
ResizeDialog.widthMM() → int
ResizeDialog.winId() → int
ResizeDialog.window() → QWidget
ResizeDialog.windowActivationChange(bool)
ResizeDialog.windowFilePath() → QString
ResizeDialog.windowFlags() → Qt.WindowFlags
ResizeDialog.windowIcon() → QIcon
ResizeDialog.windowIconText() → QString
ResizeDialog.windowModality() → Qt.WindowModality
ResizeDialog.windowOpacity() → float
ResizeDialog.windowRole() → QString
ResizeDialog.windowState() → Qt.WindowStates
ResizeDialog.windowTitle() → QString
ResizeDialog.windowType() → Qt.WindowType
ResizeDialog.x() → int
ResizeDialog.x11Info() → QX11Info
ResizeDialog.x11PictureHandle() → int
ResizeDialog.y() → int