Button class Button[source] Bases: QPushButton Inherited Methods acceptDrops accessibleDescription accessibleName actionEvent actions activateWindow addAction addActions adjustSize animateClick autoDefault autoExclusive autoFillBackground autoRepeat autoRepeatDelay autoRepeatInterval backgroundRole backingStore baseSize blockSignals changeEvent checkStateSet childAt childEvent children childrenRect childrenRegion clearFocus clearMask click close closeEvent colorCount connect connectNotify contentsMargins contentsRect contextMenuEvent contextMenuPolicy create createWinId createWindowContainer cursor customEvent deleteLater depth destroy devType devicePixelRatio devicePixelRatioF devicePixelRatioFScale disconnect disconnectNotify dragEnterEvent dragLeaveEvent dragMoveEvent dropEvent dumpObjectInfo dumpObjectTree dynamicPropertyNames effectiveWinId emit ensurePolished enterEvent event eventFilter find findChild findChildren focusInEvent focusNextChild focusNextPrevChild focusOutEvent focusPolicy focusPreviousChild focusProxy focusWidget font fontInfo fontMetrics foregroundRole frameGeometry frameSize geometry grab grabGesture grabKeyboard grabMouse grabShortcut graphicsEffect graphicsProxyWidget group hasFocus hasHeightForWidth hasMouseTracking hasTabletTracking height heightForWidth heightMM hide hideEvent hitButton icon iconSize inherits initPainter initStyleOption inputMethodEvent inputMethodHints inputMethodQuery insertAction insertActions installEventFilter internalWinId isActiveWindow isAncestorOf isCheckable isChecked isDefault isDown isEnabled isEnabledTo isFlat isFullScreen isHidden isLeftToRight isMaximized isMinimized isModal isQuickItemType isRightToLeft isSignalConnected isTopLevel isVisible isVisibleTo isWidgetType isWindow isWindowModified isWindowType keyPressEvent keyReleaseEvent keyboardGrabber killTimer layout layoutDirection leaveEvent locale logicalDpiX logicalDpiY lower mapFrom mapFromGlobal mapFromParent mapTo mapToGlobal mapToParent mask maximumHeight maximumSize maximumWidth menu metaObject metric minimumHeight minimumSize minimumSizeHint minimumWidth mouseDoubleClickEvent mouseGrabber mouseMoveEvent mousePressEvent mouseReleaseEvent move moveEvent moveToThread nativeEvent nativeParentWidget nextCheckState nextInFocusChain normalGeometry objectName overrideWindowFlags overrideWindowState paintEngine paintEvent paintingActive palette parent parentWidget physicalDpiX physicalDpiY pos previousInFocusChain property raise_ receivers rect redirected releaseKeyboard releaseMouse releaseShortcut removeAction removeEventFilter render repaint resize resizeEvent restoreGeometry saveGeometry screen scroll sender senderSignalIndex setAcceptDrops setAccessibleDescription setAccessibleName setAttribute setAutoDefault setAutoExclusive setAutoFillBackground setAutoRepeat setAutoRepeatDelay setAutoRepeatInterval setBackgroundRole setBaseSize setCheckable setChecked setContentsMargins setContextMenuPolicy setCursor setDefault setDisabled setDown setEnabled setFixedHeight setFixedSize setFixedWidth setFlat setFocus setFocusPolicy setFocusProxy setFont setForegroundRole setGeometry setGraphicsEffect setHidden setIcon setIconSize setInputMethodHints setLayout setLayoutDirection setLocale setMask setMaximumHeight setMaximumSize setMaximumWidth setMenu setMinimumHeight setMinimumSize setMinimumWidth setMouseTracking setObjectName setPalette setParent setProperty setScreen setShortcut setShortcutAutoRepeat setShortcutEnabled setSizeIncrement setSizePolicy setStatusTip setStyle setStyleSheet setTabOrder setTabletTracking setText setToolTip setToolTipDuration setUpdatesEnabled setVisible setWhatsThis setWindowFilePath setWindowFlag setWindowFlags setWindowIcon setWindowIconText setWindowModality setWindowModified setWindowOpacity setWindowRole setWindowState setWindowTitle sharedPainter shortcut show showEvent showFullScreen showMaximized showMenu showMinimized showNormal signalsBlocked size sizeHint sizeIncrement sizePolicy stackUnder startTimer statusTip style styleSheet tabletEvent testAttribute text thread timerEvent toggle toolTip toolTipDuration topLevelWidget tr underMouse ungrabGesture unsetCursor unsetLayoutDirection unsetLocale update updateGeometry updateMicroFocus updatesEnabled visibleRegion whatsThis wheelEvent width widthMM winId window windowFilePath windowFlags windowHandle windowIcon windowIconText windowModality windowOpacity windowRole windowState windowTitle windowType x y