Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtWidgets »

Classe « QAbstractSpinBox »

Informations générales

Héritage

builtins.object
    Object
        QPaintDevice
builtins.object
    Object
        QObject
            QWidget
                QAbstractSpinBox

Définition

class QAbstractSpinBox(QWidget):

Description [extrait de QAbstractSpinBox.__doc__]

QAbstractSpinBox(self, parent: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = None)

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AdaptiveDecimalStepTypePySide2.QtWidgets.QAbstractSpinBox.StepType.AdaptiveDecimalStepType
CorrectToNearestValuePySide2.QtWidgets.QAbstractSpinBox.CorrectionMode.CorrectToNearestValue
CorrectToPreviousValuePySide2.QtWidgets.QAbstractSpinBox.CorrectionMode.CorrectToPreviousValue
DefaultStepTypePySide2.QtWidgets.QAbstractSpinBox.StepType.DefaultStepType
DrawChildrenPySide2.QtWidgets.QWidget.RenderFlag.DrawChildren
DrawWindowBackgroundPySide2.QtWidgets.QWidget.RenderFlag.DrawWindowBackground
IgnoreMaskPySide2.QtWidgets.QWidget.RenderFlag.IgnoreMask
NoButtonsPySide2.QtWidgets.QAbstractSpinBox.ButtonSymbols.NoButtons
PdmDepthPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDepth
PdmDevicePixelRatioPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatio
PdmDevicePixelRatioScaledPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatioScaled
PdmDpiXPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiX
PdmDpiYPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiY
PdmHeightPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeight
PdmHeightMMPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeightMM
PdmNumColorsPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmNumColors
PdmPhysicalDpiXPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiX
PdmPhysicalDpiYPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiY
PdmWidthPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidth
PdmWidthMMPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidthMM
PlusMinusPySide2.QtWidgets.QAbstractSpinBox.ButtonSymbols.PlusMinus
staticMetaObject<PySide2.QtCore.QMetaObject object at 0x7efe359cb780>
StepDownEnabledPySide2.QtWidgets.QAbstractSpinBox.StepEnabledFlag.StepDownEnabled
StepNonePySide2.QtWidgets.QAbstractSpinBox.StepEnabledFlag.StepNone
StepUpEnabledPySide2.QtWidgets.QAbstractSpinBox.StepEnabledFlag.StepUpEnabled
UpDownArrowsPySide2.QtWidgets.QAbstractSpinBox.ButtonSymbols.UpDownArrows

Attributs statiques hérités de la classe QPaintDevice

painters

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
alignment(self) -> PySide2.QtCore.Qt.Alignment alignment(self) -> PySide2.QtCore.Qt.Alignment [extrait de alignment.__doc__]
ButtonSymbols
buttonSymbols(self) -> PySide2.QtWidgets.QAbstractSpinBox.ButtonSymbols buttonSymbols(self) -> PySide2.QtWidgets.QAbstractSpinBox.ButtonSymbols [extrait de buttonSymbols.__doc__]
changeEvent(self, event: PySide2.QtCore.QEvent) changeEvent(self, event: PySide2.QtCore.QEvent) [extrait de changeEvent.__doc__]
clear(self) clear(self) [extrait de clear.__doc__]
closeEvent(self, event: PySide2.QtGui.QCloseEvent) closeEvent(self, event: PySide2.QtGui.QCloseEvent) [extrait de closeEvent.__doc__]
contextMenuEvent(self, event: PySide2.QtGui.QContextMenuEvent) contextMenuEvent(self, event: PySide2.QtGui.QContextMenuEvent) [extrait de contextMenuEvent.__doc__]
CorrectionMode
correctionMode(self) -> PySide2.QtWidgets.QAbstractSpinBox.CorrectionMode correctionMode(self) -> PySide2.QtWidgets.QAbstractSpinBox.CorrectionMode [extrait de correctionMode.__doc__]
customContextMenuRequested
destroyed
editingFinished
event(self, event: PySide2.QtCore.QEvent) -> bool event(self, event: PySide2.QtCore.QEvent) -> bool [extrait de event.__doc__]
fixup(self, input: str) fixup(self, input: str) [extrait de fixup.__doc__]
focusInEvent(self, event: PySide2.QtGui.QFocusEvent) focusInEvent(self, event: PySide2.QtGui.QFocusEvent) [extrait de focusInEvent.__doc__]
focusOutEvent(self, event: PySide2.QtGui.QFocusEvent) focusOutEvent(self, event: PySide2.QtGui.QFocusEvent) [extrait de focusOutEvent.__doc__]
hasAcceptableInput(self) -> bool hasAcceptableInput(self) -> bool [extrait de hasAcceptableInput.__doc__]
hasFrame(self) -> bool hasFrame(self) -> bool [extrait de hasFrame.__doc__]
hideEvent(self, event: PySide2.QtGui.QHideEvent) hideEvent(self, event: PySide2.QtGui.QHideEvent) [extrait de hideEvent.__doc__]
initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionSpinBox) initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionSpinBox) [extrait de initStyleOption.__doc__]
inputMethodQuery(self, arg__1: PySide2.QtCore.Qt.InputMethodQuery) -> typing.Any inputMethodQuery(self, arg__1: PySide2.QtCore.Qt.InputMethodQuery) -> typing.Any [extrait de inputMethodQuery.__doc__]
interpretText(self) interpretText(self) [extrait de interpretText.__doc__]
isAccelerated(self) -> bool isAccelerated(self) -> bool [extrait de isAccelerated.__doc__]
isGroupSeparatorShown(self) -> bool isGroupSeparatorShown(self) -> bool [extrait de isGroupSeparatorShown.__doc__]
isReadOnly(self) -> bool isReadOnly(self) -> bool [extrait de isReadOnly.__doc__]
keyboardTracking(self) -> bool keyboardTracking(self) -> bool [extrait de keyboardTracking.__doc__]
keyPressEvent(self, event: PySide2.QtGui.QKeyEvent) keyPressEvent(self, event: PySide2.QtGui.QKeyEvent) [extrait de keyPressEvent.__doc__]
keyReleaseEvent(self, event: PySide2.QtGui.QKeyEvent) keyReleaseEvent(self, event: PySide2.QtGui.QKeyEvent) [extrait de keyReleaseEvent.__doc__]
lineEdit(self) -> PySide2.QtWidgets.QLineEdit lineEdit(self) -> PySide2.QtWidgets.QLineEdit [extrait de lineEdit.__doc__]
minimumSizeHint(self) -> PySide2.QtCore.QSize minimumSizeHint(self) -> PySide2.QtCore.QSize [extrait de minimumSizeHint.__doc__]
mouseMoveEvent(self, event: PySide2.QtGui.QMouseEvent) mouseMoveEvent(self, event: PySide2.QtGui.QMouseEvent) [extrait de mouseMoveEvent.__doc__]
mousePressEvent(self, event: PySide2.QtGui.QMouseEvent) mousePressEvent(self, event: PySide2.QtGui.QMouseEvent) [extrait de mousePressEvent.__doc__]
mouseReleaseEvent(self, event: PySide2.QtGui.QMouseEvent) mouseReleaseEvent(self, event: PySide2.QtGui.QMouseEvent) [extrait de mouseReleaseEvent.__doc__]
objectNameChanged
paintEvent(self, event: PySide2.QtGui.QPaintEvent) paintEvent(self, event: PySide2.QtGui.QPaintEvent) [extrait de paintEvent.__doc__]
resizeEvent(self, event: PySide2.QtGui.QResizeEvent) resizeEvent(self, event: PySide2.QtGui.QResizeEvent) [extrait de resizeEvent.__doc__]
selectAll(self) selectAll(self) [extrait de selectAll.__doc__]
setAccelerated(self, on: bool) setAccelerated(self, on: bool) [extrait de setAccelerated.__doc__]
setAlignment(self, flag: PySide2.QtCore.Qt.Alignment) setAlignment(self, flag: PySide2.QtCore.Qt.Alignment) [extrait de setAlignment.__doc__]
setButtonSymbols(self, bs: PySide2.QtWidgets.QAbstractSpinBox.ButtonSymbols) setButtonSymbols(self, bs: PySide2.QtWidgets.QAbstractSpinBox.ButtonSymbols) [extrait de setButtonSymbols.__doc__]
setCorrectionMode(self, cm: PySide2.QtWidgets.QAbstractSpinBox.CorrectionMode) setCorrectionMode(self, cm: PySide2.QtWidgets.QAbstractSpinBox.CorrectionMode) [extrait de setCorrectionMode.__doc__]
setFrame(self, arg__1: bool) setFrame(self, arg__1: bool) [extrait de setFrame.__doc__]
setGroupSeparatorShown(self, shown: bool) setGroupSeparatorShown(self, shown: bool) [extrait de setGroupSeparatorShown.__doc__]
setKeyboardTracking(self, kt: bool) setKeyboardTracking(self, kt: bool) [extrait de setKeyboardTracking.__doc__]
setLineEdit(self, edit: PySide2.QtWidgets.QLineEdit) setLineEdit(self, edit: PySide2.QtWidgets.QLineEdit) [extrait de setLineEdit.__doc__]
setReadOnly(self, r: bool) setReadOnly(self, r: bool) [extrait de setReadOnly.__doc__]
setSpecialValueText(self, txt: str) setSpecialValueText(self, txt: str) [extrait de setSpecialValueText.__doc__]
setWrapping(self, w: bool) setWrapping(self, w: bool) [extrait de setWrapping.__doc__]
showEvent(self, event: PySide2.QtGui.QShowEvent) showEvent(self, event: PySide2.QtGui.QShowEvent) [extrait de showEvent.__doc__]
sizeHint(self) -> PySide2.QtCore.QSize sizeHint(self) -> PySide2.QtCore.QSize [extrait de sizeHint.__doc__]
specialValueText(self) -> str specialValueText(self) -> str [extrait de specialValueText.__doc__]
stepBy(self, steps: int) stepBy(self, steps: int) [extrait de stepBy.__doc__]
stepDown(self) stepDown(self) [extrait de stepDown.__doc__]
StepEnabled
stepEnabled(self) -> PySide2.QtWidgets.QAbstractSpinBox.StepEnabled stepEnabled(self) -> PySide2.QtWidgets.QAbstractSpinBox.StepEnabled [extrait de stepEnabled.__doc__]
StepEnabledFlag
StepType
stepUp(self) stepUp(self) [extrait de stepUp.__doc__]
text(self) -> str text(self) -> str [extrait de text.__doc__]
timerEvent(self, event: PySide2.QtCore.QTimerEvent) timerEvent(self, event: PySide2.QtCore.QTimerEvent) [extrait de timerEvent.__doc__]
validate(self, input: str, pos: int) -> PySide2.QtGui.QValidator.State validate(self, input: str, pos: int) -> PySide2.QtGui.QValidator.State [extrait de validate.__doc__]
wheelEvent(self, event: PySide2.QtGui.QWheelEvent) wheelEvent(self, event: PySide2.QtGui.QWheelEvent) [extrait de wheelEvent.__doc__]
windowIconChanged
windowIconTextChanged
windowTitleChanged
wrapping(self) -> bool wrapping(self) -> bool [extrait de wrapping.__doc__]

Méthodes héritées de la classe QWidget

__init_subclass__, __repr__, __subclasshook__, acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, backingStore, baseSize, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, contentsMargins, contentsRect, contextMenuPolicy, create, createWindowContainer, createWinId, cursor, destroy, devType, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, ensurePolished, enterEvent, find, focusNextChild, focusNextPrevChild, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grab, grabGesture, grabKeyboard, grabMouse, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasHeightForWidth, hasMouseTracking, hasTabletTracking, height, heightForWidth, hide, initPainter, inputMethodEvent, inputMethodHints, insertAction, insertActions, internalWinId, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isEnabledToTLW, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, layout, layoutDirection, leaveEvent, locale, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumWidth, mouseDoubleClickEvent, mouseGrabber, move, moveEvent, nativeEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowState, paintEngine, palette, parentWidget, pos, previousInFocusChain, raise_, rect, redirected, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, RenderFlag, RenderFlags, repaint, resize, restoreGeometry, saveGeometry, screen, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedWidth, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGraphicsEffect, setHidden, setInputMethodHints, setLayout, setLayoutDirection, setLocale, setMask, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setShortcutAutoRepeat, setShortcutEnabled, setSizeIncrement, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabletTracking, setTabOrder, setToolTip, setToolTipDuration, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlag, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowTitle, sharedPainter, show, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, toolTipDuration, topLevelWidget, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, width, window, windowFilePath, windowFlags, windowHandle, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, winId, x, y

Méthodes héritées de la classe QPaintDevice

__init_subclass__, __subclasshook__, colorCount, depth, devicePixelRatio, devicePixelRatioF, devicePixelRatioFScale, devType, height, heightMM, initPainter, logicalDpiX, logicalDpiY, metric, PaintDeviceMetric, paintEngine, paintingActive, physicalDpiX, physicalDpiY, redirected, sharedPainter, width, widthMM

Méthodes héritées de la classe QObject

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, receivers, registerUserData, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, tr

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__