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
BoxDrawChildrenDrawWindowBackgroundHLineIgnoreMaskNoFramePanelPdmDepthPdmDevicePixelRatioPdmDevicePixelRatioScaledPdmDpiXPdmDpiYPdmHeightPdmHeightMMPdmNumColorsPdmPhysicalDpiXPdmPhysicalDpiYPdmWidthPdmWidthMMPlainRaisedShadow_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 RenderFlags#
 - class RenderFlags(f: QWidget.RenderFlags | QWidget.RenderFlag)
 - class RenderFlags(a0: QWidget.RenderFlags)
 Bases:
simplewrapper
- actions(self) → List[QAction]#
 
- activateWindow(self)#
 
- addActions(self, actions: Iterable[QAction])#
 
- adjustSize(self)#
 
- backgroundRole(self) → QPalette.ColorRole#
 
- baseSize(self) → QSize#
 
- children(self) → List[QObject]#
 
- childrenRect(self) → QRect#
 
- childrenRegion(self) → QRegion#
 
- clearFocus(self)#
 
- clearMask(self)#
 
- connectNotify(self, signal: QMetaMethod)#
 
- contentsMargins(self) → QMargins#
 
- contentsRect(self) → QRect#
 
- contextMenuPolicy(self) → Qt.ContextMenuPolicy#
 
- create(self, window: PyQt5.sip.voidptr = None, initializeWindow: bool = True, destroyOldWindow: bool = True)#
 
- createWindowContainer(window: QWindow | None, parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = 0) → QWidget#
 
- cursor(self) → QCursor#
 
- deleteLater(self)#
 
- disconnectNotify(self, signal: QMetaMethod)#
 
- dumpObjectInfo(self)#
 
- dumpObjectTree(self)#
 
- dynamicPropertyNames(self) → List[QByteArray]#
 
- effectiveWinId(self) → PyQt5.sip.voidptr#
 
- ensurePolished(self)#
 
- findChild(self, type: Type[QObjectT], name: str | None = '', options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) → QObjectT#
 - findChild(self, types: Tuple[Type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) → QObjectT
 
- findChildren(self, type: Type[QObjectT], name: str | None = '', options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) → List[QObjectT]#
 - findChildren(self, types: Tuple[Type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) → List[QObjectT]
 - findChildren(self, type: Type[QObjectT], regExp: QRegExp, options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) → List[QObjectT]
 - findChildren(self, types: Tuple[Type[QObjectT], ...], regExp: QRegExp, options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) → List[QObjectT]
 - findChildren(self, type: Type[QObjectT], re: QRegularExpression, options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) → List[QObjectT]
 - findChildren(self, types: Tuple[Type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) → List[QObjectT]
 
- focusPolicy(self) → Qt.FocusPolicy#
 
- font(self) → QFont#
 
- fontInfo(self) → QFontInfo#
 
- fontMetrics(self) → QFontMetrics#
 
- foregroundRole(self) → QPalette.ColorRole#
 
- frameGeometry(self) → QRect#
 
- frameRect(self) → QRect#
 
- frameShadow(self) → QFrame.Shadow#
 
- frameShape(self) → QFrame.Shape#
 
- frameSize(self) → QSize#
 
- geometry(self) → QRect#
 
- getContentsMargins(self)#
 
- grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(-1, -1))) → QPixmap#
 
- grabGesture(self, type: Qt.GestureType, flags: Qt.GestureFlags | Qt.GestureFlag = Qt.GestureFlags())#
 
- grabKeyboard(self)#
 
- grabShortcut(self, key: QKeySequence | QKeySequence.StandardKey | str | None | int, context: Qt.ShortcutContext = Qt.WindowShortcut) → int#
 
- hide(self)#
 
- inputMethodHints(self) → Qt.InputMethodHints#
 
- inputMethodQuery(self, a0: Qt.InputMethodQuery) → Any#
 
- layoutDirection(self) → Qt.LayoutDirection#
 
- locale(self) → QLocale#
 
- lower(self)#
 
- mapFromGlobal(self, a0: QPoint) → QPoint#
 
- mapFromParent(self, a0: QPoint) → QPoint#
 
- mapToGlobal(self, a0: QPoint) → QPoint#
 
- mapToParent(self, a0: QPoint) → QPoint#
 
- mask(self) → QRegion#
 
- maximumSize(self) → QSize#
 
- metric(self, a0: QPaintDevice.PaintDeviceMetric) → int#
 
- minimumSize(self) → QSize#
 
- minimumSizeHint(self) → QSize#
 
- normalGeometry(self) → QRect#
 
- open_ndisplay_camera_popup() → None[source]#
 Show controls for camera settings based on ndisplay mode.
- overrideWindowFlags(self, type: Qt.WindowFlags | Qt.WindowType)#
 
- overrideWindowState(self, state: Qt.WindowStates | Qt.WindowState)#
 
- palette(self) → QPalette#
 
- pos(self) → QPoint#
 
- 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.
- raise_(self)#
 
- rect(self) → QRect#
 
- releaseKeyboard(self)#
 
- releaseMouse(self)#
 
- render(self, target: QPaintDevice | None, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlags | QWidget.RenderFlag = QWidget.RenderFlags(QWidget.RenderFlag.DrawWindowBackground | QWidget.RenderFlag.DrawChildren))#
 - render(self, painter: QPainter | None, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlags | QWidget.RenderFlag = QWidget.RenderFlags(QWidget.RenderFlag.DrawWindowBackground | QWidget.RenderFlag.DrawChildren)) → None
 
- repaint(self)#
 - repaint(self, x: int, y: int, w: int, h: int) → None
 - repaint(self, a0: QRect) → None
 - repaint(self, a0: QRegion) → None
 
- saveGeometry(self) → QByteArray#
 
- setBackgroundRole(self, a0: QPalette.ColorRole)#
 
- setContentsMargins(self, left: int, top: int, right: int, bottom: int)#
 - setContentsMargins(self, margins: QMargins) → None
 
- setContextMenuPolicy(self, policy: Qt.ContextMenuPolicy)#
 
- setCursor(self, a0: QCursor | Qt.CursorShape)#
 
- setFocusPolicy(self, policy: Qt.FocusPolicy)#
 
- setFont(self, a0: QFont)#
 
- setForegroundRole(self, a0: QPalette.ColorRole)#
 
- setFrameRect(self, a0: QRect)#
 
- setFrameShadow(self, a0: QFrame.Shadow)#
 
- setFrameShape(self, a0: QFrame.Shape)#
 
- setInputMethodHints(self, hints: Qt.InputMethodHints | Qt.InputMethodHint)#
 
- setLayoutDirection(self, direction: Qt.LayoutDirection)#
 
- setLocale(self, locale: QLocale)#
 
- setPalette(self, a0: QPalette)#
 
- setParent(self, parent: QWidget | None)#
 - setParent(self, parent: QWidget | None, f: Qt.WindowFlags | Qt.WindowType) → None
 
- setSizePolicy(self, a0: QSizePolicy)#
 - setSizePolicy(self, hor: QSizePolicy.Policy, ver: QSizePolicy.Policy) → None
 
- setWindowFlags(self, type: Qt.WindowFlags | Qt.WindowType)#
 
- setWindowIcon(self, icon: QIcon)#
 
- setWindowModality(self, windowModality: Qt.WindowModality)#
 
- setWindowState(self, state: Qt.WindowStates | Qt.WindowState)#
 
- show(self)#
 
- showFullScreen(self)#
 
- showMaximized(self)#
 
- showMinimized(self)#
 
- showNormal(self)#
 
- size(self) → QSize#
 
- sizeHint(self) → QSize#
 
- sizeIncrement(self) → QSize#
 
- sizePolicy(self) → QSizePolicy#
 
- ungrabGesture(self, type: Qt.GestureType)#
 
- unsetCursor(self)#
 
- unsetLayoutDirection(self)#
 
- unsetLocale(self)#
 
- update(self)#
 - update(self, a0: QRect) → None
 - update(self, a0: QRegion) → None
 - update(self, ax: int, ay: int, aw: int, ah: int) → None
 
- updateGeometry(self)#
 
- updateMicroFocus(self)#
 
- visibleRegion(self) → QRegion#
 
- winId(self) → PyQt5.sip.voidptr#
 
- windowFlags(self) → Qt.WindowFlags#
 
- windowIcon(self) → QIcon#
 
- windowModality(self) → Qt.WindowModality#
 
- windowState(self) → Qt.WindowStates#
 
- windowType(self) → Qt.WindowType#