napari.qt.QtViewerButtons#
- class napari.qt.QtViewerButtons(viewer: ViewerModel)[source]#
Bases:
QFrameButton controls for the napari viewer.
- Parameters:
viewer (napari.components.ViewerModel) – Napari viewer containing the rendered scene, layers, and controls.
- consoleButton#
Button to open iPython console within napari.
- Type:
QtViewerPushButton
- rollDimsButton#
Button to roll orientation of spatial dimensions in the napari viewer.
- Type:
QtViewerPushButton
- transposeDimsButton#
Button to transpose dimensions in the napari viewer.
- Type:
QtViewerPushButton
- resetViewButton#
Button resetting the view of the rendered scene.
- Type:
QtViewerPushButton
- gridViewButton#
Button to toggle grid view mode of layers on and off.
- Type:
QtViewerPushButton
- ndisplayButton#
Button to toggle number of displayed dimensions.
- Type:
QtViewerPushButton
- viewer#
Napari viewer containing the rendered scene, layers, and controls.
Methods
Attributes
BoxDrawChildrenDrawWindowBackgroundHLineIgnoreMaskNoFramePanelPdmDepthPdmDevicePixelRatioPdmDevicePixelRatioF_EncodedAPdmDevicePixelRatioF_EncodedBPdmDevicePixelRatioScaledPdmDpiXPdmDpiYPdmHeightPdmHeightMMPdmNumColorsPdmPhysicalDpiXPdmPhysicalDpiYPdmWidthPdmWidthMMPlainRaisedShadow_MaskShape_MaskStyledPanelSunkenVLineWinPanelcustomContextMenuRequestedint = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
destroyedint = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
objectNameChangedint = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
staticMetaObjectwindowIconChangedint = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
windowIconTextChangedint = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
windowTitleChangedint = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
Details
- class Shadow(*values)#
Bases:
IntEnum- as_integer_ratio()#
Return a pair of integers, whose ratio is equal to the original int.
The ratio is in lowest terms and has a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- bit_count()#
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- bit_length()#
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- conjugate()#
Returns self, the complex conjugate of any int.
- denominator#
the denominator of a rational number in lowest terms
- classmethod from_bytes(bytes, byteorder='big', *, signed=False)#
Return the integer represented by the given array of bytes.
- imag#
the imaginary part of a complex number
- is_integer()#
Returns True. Exists for duck type compatibility with float.is_integer.
- numerator#
the numerator of a rational number in lowest terms
- real#
the real part of a complex number
- to_bytes(length=1, byteorder='big', *, signed=False)#
Return an array of bytes representing an integer.
- class Shape(*values)#
Bases:
IntEnum- as_integer_ratio()#
Return a pair of integers, whose ratio is equal to the original int.
The ratio is in lowest terms and has a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- bit_count()#
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- bit_length()#
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- conjugate()#
Returns self, the complex conjugate of any int.
- denominator#
the denominator of a rational number in lowest terms
- classmethod from_bytes(bytes, byteorder='big', *, signed=False)#
Return the integer represented by the given array of bytes.
- imag#
the imaginary part of a complex number
- is_integer()#
Returns True. Exists for duck type compatibility with float.is_integer.
- numerator#
the numerator of a rational number in lowest terms
- real#
the real part of a complex number
- to_bytes(length=1, byteorder='big', *, signed=False)#
Return an array of bytes representing an integer.
- classmethod activateWindow(self)#
- classmethod addAction(self, icon: QIcon, text: str | None) → QAction | None#
- classmethod addAction(self, icon: QIcon, text: str | None, slot: PYQT_SLOT, type: Qt.ConnectionType = Qt.AutoConnection) → QAction | None
- classmethod addAction(self, icon: QIcon, text: str | None, shortcut: QKeySequence | QKeySequence.StandardKey | str | None | int) → QAction | None
- classmethod addAction(self, icon: QIcon, text: str | None, shortcut: QKeySequence | QKeySequence.StandardKey | str | None | int, slot: PYQT_SLOT, type: Qt.ConnectionType = Qt.AutoConnection) → QAction | None
- classmethod addAction(self, text: str | None) → QAction | None
- classmethod addAction(self, text: str | None, shortcut: QKeySequence | QKeySequence.StandardKey | str | None | int) → QAction | None
- classmethod addAction(self, text: str | None, slot: PYQT_SLOT, type: Qt.ConnectionType = Qt.AutoConnection) → QAction | None
- classmethod addAction(self, text: str | None, shortcut: QKeySequence | QKeySequence.StandardKey | str | None | int, slot: PYQT_SLOT, type: Qt.ConnectionType = Qt.AutoConnection) → QAction | None
- classmethod addAction(self, action: QAction | None)
- classmethod addActions(self, actions: Iterable[QAction])#
- classmethod adjustSize(self)#
- classmethod backgroundRole(self) → QPalette.ColorRole#
- classmethod baseSize(self) → QSize#
- classmethod childAt(self, p: QPoint) → QWidget | None#
- classmethod childAt(self, p: QPointF) → QWidget | None
- classmethod childAt(self, ax: int, ay: int) → QWidget | None
- classmethod childrenRect(self) → QRect#
- classmethod childrenRegion(self) → QRegion#
- classmethod clearFocus(self)#
- classmethod clearMask(self)#
- classmethod connectNotify(self, signal: QMetaMethod)#
- classmethod contentsMargins(self) → QMargins#
- classmethod contentsRect(self) → QRect#
- classmethod contextMenuPolicy(self) → Qt.ContextMenuPolicy#
- classmethod create(self, window: PyQt6.sip.voidptr = None, initializeWindow: bool = True, destroyOldWindow: bool = True)#
- classmethod createWindowContainer(window: QWindow | None, parent: QWidget | None = None, flags: Qt.WindowType = Qt.WindowFlags()) → QWidget#
- classmethod cursor(self) → QCursor#
- classmethod deleteLater(self)#
- classmethod disconnectNotify(self, signal: QMetaMethod)#
- classmethod dumpObjectInfo(self)#
- classmethod dumpObjectTree(self)#
- classmethod effectiveWinId(self) → PyQt6.sip.voidptr#
- classmethod ensurePolished(self)#
- classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) → QObjectT#
- classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) → QObjectT
- classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) → list[QObjectT]#
- classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) → list[QObjectT]
- classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) → list[QObjectT]
- classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) → list[QObjectT]
- classmethod focusPolicy(self) → Qt.FocusPolicy#
- classmethod font(self) → QFont#
- classmethod fontInfo(self) → QFontInfo#
- classmethod fontMetrics(self) → QFontMetrics#
- classmethod foregroundRole(self) → QPalette.ColorRole#
- classmethod frameGeometry(self) → QRect#
- classmethod frameRect(self) → QRect#
- classmethod frameShadow(self) → QFrame.Shadow#
- classmethod frameShape(self) → QFrame.Shape#
- classmethod frameSize(self) → QSize#
- classmethod geometry(self) → QRect#
- classmethod grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(-1, -1))) → QPixmap#
- classmethod grabGesture(self, type: Qt.GestureType, flags: Qt.GestureFlag = Qt.GestureFlags())#
- classmethod grabKeyboard(self)#
- classmethod grabMouse(self)#
- classmethod grabMouse(self, a0: QCursor | Qt.CursorShape)
- classmethod grabShortcut(self, key: QKeySequence | QKeySequence.StandardKey | str | None | int, context: Qt.ShortcutContext = Qt.WindowShortcut) → int#
- classmethod hide(self)#
- classmethod inputMethodHints(self) → Qt.InputMethodHint#
- classmethod inputMethodQuery(self, a0: Qt.InputMethodQuery) → Any#
- classmethod layoutDirection(self) → Qt.LayoutDirection#
- classmethod locale(self) → QLocale#
- classmethod lower(self)#
- classmethod mapFrom(self, a0: QWidget | None, a1: QPoint) → QPoint#
- classmethod mapFrom(self, a0: QWidget | None, a1: QPointF) → QPointF
- classmethod mapFromGlobal(self, a0: QPoint) → QPoint#
- classmethod mapFromGlobal(self, a0: QPointF) → QPointF
- classmethod mapFromParent(self, a0: QPoint) → QPoint#
- classmethod mapFromParent(self, a0: QPointF) → QPointF
- classmethod mapTo(self, a0: QWidget | None, a1: QPoint) → QPoint#
- classmethod mapTo(self, a0: QWidget | None, a1: QPointF) → QPointF
- classmethod mapToGlobal(self, a0: QPoint) → QPoint#
- classmethod mapToGlobal(self, a0: QPointF) → QPointF
- classmethod mapToParent(self, a0: QPoint) → QPoint#
- classmethod mapToParent(self, a0: QPointF) → QPointF
- classmethod mask(self) → QRegion#
- classmethod maximumSize(self) → QSize#
- classmethod metric(self, a0: QPaintDevice.PaintDeviceMetric) → int#
- classmethod minimumSize(self) → QSize#
- classmethod minimumSizeHint(self) → QSize#
- classmethod nativeEvent(self, eventType: QByteArray | bytes | bytearray | memoryview, message: PyQt6.sip.voidptr | None)#
- classmethod normalGeometry(self) → QRect#
- open_ndisplay_camera_popup() → None[source]#
Show controls for camera settings based on ndisplay mode.
- classmethod overrideWindowFlags(self, type: Qt.WindowType)#
- classmethod overrideWindowState(self, state: Qt.WindowState)#
- classmethod palette(self) → QPalette#
- classmethod pos(self) → QPoint#
- classmethod 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.
- classmethod raise_(self)#
- classmethod rect(self) → QRect#
- classmethod releaseKeyboard(self)#
- classmethod releaseMouse(self)#
- classmethod render(self, target: QPaintDevice | None, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlag = QWidget.RenderFlags(QWidget.DrawWindowBackground | QWidget.DrawChildren))#
- classmethod render(self, painter: QPainter | None, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlag = QWidget.RenderFlags(QWidget.DrawWindowBackground | QWidget.DrawChildren))
- classmethod repaint(self)#
- classmethod repaint(self, x: int, y: int, w: int, h: int)
- classmethod repaint(self, a0: QRect)
- classmethod repaint(self, a0: QRegion)
- classmethod restoreGeometry(self, geometry: QByteArray | bytes | bytearray | memoryview) → bool#
- classmethod saveGeometry(self) → QByteArray#
- classmethod setBackgroundRole(self, a0: QPalette.ColorRole)#
- classmethod setContentsMargins(self, left: int, top: int, right: int, bottom: int)#
- classmethod setContentsMargins(self, margins: QMargins)
- classmethod setContextMenuPolicy(self, policy: Qt.ContextMenuPolicy)#
- classmethod setCursor(self, a0: QCursor | Qt.CursorShape)#
- classmethod setFocus(self)#
- classmethod setFocus(self, reason: Qt.FocusReason)
- classmethod setFocusPolicy(self, policy: Qt.FocusPolicy)#
- classmethod setFont(self, a0: QFont)#
- classmethod setForegroundRole(self, a0: QPalette.ColorRole)#
- classmethod setFrameRect(self, a0: QRect)#
- classmethod setFrameShadow(self, a0: QFrame.Shadow)#
- classmethod setFrameShape(self, a0: QFrame.Shape)#
- classmethod setGeometry(self, a0: QRect)#
- classmethod setGeometry(self, ax: int, ay: int, aw: int, ah: int)
- classmethod setInputMethodHints(self, hints: Qt.InputMethodHint)#
- classmethod setLayoutDirection(self, direction: Qt.LayoutDirection)#
- classmethod setLocale(self, locale: QLocale)#
- classmethod setMask(self, a0: QBitmap)#
- classmethod setMask(self, a0: QRegion)
- classmethod setPalette(self, a0: QPalette)#
- classmethod setParent(self, parent: QWidget | None)#
- classmethod setParent(self, parent: QWidget | None, f: Qt.WindowType)
- classmethod setSizePolicy(self, a0: QSizePolicy)#
- classmethod setSizePolicy(self, hor: QSizePolicy.Policy, ver: QSizePolicy.Policy)
- classmethod setWindowFlags(self, type: Qt.WindowType)#
- classmethod setWindowIcon(self, icon: QIcon)#
- classmethod setWindowModality(self, windowModality: Qt.WindowModality)#
- classmethod setWindowState(self, state: Qt.WindowState)#
- classmethod show(self)#
- classmethod showFullScreen(self)#
- classmethod showMaximized(self)#
- classmethod showMinimized(self)#
- classmethod showNormal(self)#
- classmethod size(self) → QSize#
- classmethod sizeHint(self) → QSize#
- classmethod sizeIncrement(self) → QSize#
- classmethod sizePolicy(self) → QSizePolicy#
- classmethod ungrabGesture(self, type: Qt.GestureType)#
- classmethod unsetCursor(self)#
- classmethod unsetLayoutDirection(self)#
- classmethod unsetLocale(self)#
- classmethod update(self)#
- classmethod update(self, a0: QRect)
- classmethod update(self, a0: QRegion)
- classmethod update(self, ax: int, ay: int, aw: int, ah: int)
- classmethod updateGeometry(self)#
- classmethod updateMicroFocus(self, query: Qt.InputMethodQuery = Qt.ImQueryAll)#
- classmethod visibleRegion(self) → QRegion#
- classmethod winId(self) → PyQt6.sip.voidptr#
- classmethod windowFlags(self) → Qt.WindowType#
- classmethod windowIcon(self) → QIcon#
- classmethod windowModality(self) → Qt.WindowModality#
- classmethod windowState(self) → Qt.WindowState#
- classmethod windowType(self) → Qt.WindowType#