pyOMA.GUI.HelpersGUI.DelayedDoubleSpinBox#

class pyOMA.GUI.HelpersGUI.DelayedDoubleSpinBox(*args, **kwargs)[source]#

Bases: QDoubleSpinBox

reimplementation of QDoubleSpinBox to delay the emit of the valueChanged signal by 1.5 seconds after the last change of the value this allows for a function to be directly connected to the signal without the need to check for further changes of the value else when the user clicks through the values it would emit a lot of signals and the connected funtion would run this many times note that you have to connect to valueChangedDelayed signal if you want to make use of this functionality valueChanged signal works as in QDoubleSpinBox

__init__(*args, **kwargs)[source]#

inherit from QDoubleSpinBox instantiate a timer and set its default timeout value (1500 ms) connect the valueChanged signal of QDoubleSpinBox to the start () slot of QTimer connect the timeout () signal of QTimer to delayed emit

Methods

__init__(*args, **kwargs)

inherit from QDoubleSpinBox instantiate a timer and set its default timeout value (1500 ms) connect the valueChanged signal of QDoubleSpinBox to the start () slot of QTimer connect the timeout () signal of QTimer to delayed emit

acceptDrops(self)

accessibleDescription(self)

accessibleIdentifier(self)

accessibleName(self)

actionEvent(self, a0)

actions(self)

activateWindow(self)

addAction(...)

addActions(self, actions)

adjustSize(self)

alignment(self)

autoFillBackground(self)

backgroundRole(self)

baseSize(self)

blockSignals(self, b)

buttonSymbols(self)

changeEvent(self, e)

childAt(-> QWidget|None  -> QWidget|None)

childEvent(self, a0)

children(self)

childrenRect(self)

childrenRegion(self)

cleanText(self)

clear(self)

clearFocus(self)

clearMask(self)

close(self)

closeEvent(self, e)

colorCount(self)

connectNotify(self, signal)

contentsMargins(self)

contentsRect(self)

contextMenuEvent(self, e)

contextMenuPolicy(self)

correctionMode(self)

create(self[, window, initializeWindow, ...])

createWindowContainer(window[, parent, flags])

cursor(self)

customEvent(self, a0)

decimals(self)

delayed_emit()

stop the timer and send the current value of the QDoubleSpinBox

deleteLater(self)

depth(self)

destroy(self[, destroyWindow, destroySubWindows])

devType(self)

devicePixelRatio(self)

devicePixelRatioF(self)

devicePixelRatioFScale()

disconnect(-> bool)

disconnectNotify(self, signal)

dragEnterEvent(self, a0)

dragLeaveEvent(self, a0)

dragMoveEvent(self, a0)

dropEvent(self, a0)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

effectiveWinId(self)

ensurePolished(self)

enterEvent(self, event)

event(self, event)

eventFilter(self, a0, a1)

find(a0)

findChild(-> QObjectT)

findChildren(...)

fixup(self, str)

focusInEvent(self, e)

focusNextChild(self)

focusNextPrevChild(self, next)

focusOutEvent(self, e)

focusPolicy(self)

focusPreviousChild(self)

focusProxy(self)

focusWidget(self)

font(self)

fontInfo(self)

fontMetrics(self)

foregroundRole(self)

frameGeometry(self)

frameSize(self)

geometry(self)

grab(self[, rectangle])

grabGesture(self, type[, flags])

grabKeyboard(self)

grabMouse()

grabShortcut(self, key[, context])

graphicsEffect(self)

graphicsProxyWidget(self)

hasAcceptableInput(self)

hasFocus(self)

hasFrame(self)

hasHeightForWidth(self)

hasMouseTracking(self)

hasTabletTracking(self)

height(self)

heightForWidth(self, a0)

heightMM(self)

hide(self)

hideEvent(self, e)

inherits(self, classname)

initPainter(self, painter)

initStyleOption(self, option)

inputMethodEvent(self, a0)

inputMethodHints(self)

inputMethodQuery(self, a0)

insertAction(self, before, action)

insertActions(self, before, actions)

installEventFilter(self, a0)

interpretText(self)

isAccelerated(self)

isActiveWindow(self)

isAncestorOf(self, child)

isEnabled(self)

isEnabledTo(self, a0)

isFullScreen(self)

isGroupSeparatorShown(self)

isHidden(self)

isLeftToRight(self)

isMaximized(self)

isMinimized(self)

isModal(self)

isQmlExposed(self)

isQuickItemType(self)

isReadOnly(self)

isRightToLeft(self)

isSignalConnected(self, signal)

isVisible(self)

isVisibleTo(self, a0)

isWidgetType(self)

isWindow(self)

isWindowModified(self)

isWindowType(self)

keyPressEvent(self, e)

keyReleaseEvent(self, e)

keyboardGrabber()

keyboardTracking(self)

killTimer(self, id)

layout(self)

layoutDirection(self)

leaveEvent(self, a0)

lineEdit(self)

locale(self)

logicalDpiX(self)

logicalDpiY(self)

lower(self)

mapFrom(-> QPoint)

mapFromGlobal(-> QPoint)

mapFromParent(-> QPoint)

mapTo(-> QPoint)

mapToGlobal(-> QPoint)

mapToParent(-> QPoint)

mask(self)

maximum(self)

maximumHeight(self)

maximumSize(self)

maximumWidth(self)

metaObject(self)

metric(self, a0)

minimum(self)

minimumHeight(self)

minimumSize(self)

minimumSizeHint(self)

minimumWidth(self)

mouseDoubleClickEvent(self, a0)

mouseGrabber()

mouseMoveEvent(self, e)

mousePressEvent(self, e)

mouseReleaseEvent(self, e)

move()

moveEvent(self, a0)

moveToThread(self, thread)

nativeEvent(self, eventType, message)

nativeParentWidget(self)

nextInFocusChain(self)

normalGeometry(self)

objectName(self)

overrideWindowFlags(self, type)

overrideWindowState(self, state)

paintEngine(self)

paintEvent(self, e)

paintingActive(self)

palette(self)

parent(self)

parentWidget(self)

physicalDpiX(self)

physicalDpiY(self)

pos(self)

prefix(self)

previousInFocusChain(self)

property(self, name)

pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal.

raise_(self)

receivers(self, signal)

rect(self)

releaseKeyboard(self)

releaseMouse(self)

releaseShortcut(self, id)

removeAction(self, action)

removeEventFilter(self, a0)

render(, sourceRegion, flags, sourceRegion, ...)

repaint()

resize()

resizeEvent(self, e)

restoreGeometry(self, geometry)

saveGeometry(self)

screen(self)

scroll()

selectAll(self)

sender(self)

senderSignalIndex(self)

setAccelerated(self, on)

setAcceptDrops(self, on)

setAccessibleDescription(self, description)

setAccessibleIdentifier(self, identifier)

setAccessibleName(self, name)

setAlignment(self, flag)

setAttribute(self, attribute[, on])

setAutoFillBackground(self, enabled)

setBackgroundRole(self, a0)

setBaseSize()

setButtonSymbols(self, bs)

setContentsMargins()

setContextMenuPolicy(self, policy)

setCorrectionMode(self, cm)

setCursor(self, a0)

setDecimals(self, prec)

setDisabled(self, a0)

setEnabled(self, a0)

setFixedHeight(self, h)

setFixedSize()

setFixedWidth(self, w)

setFocus()

setFocusPolicy(self, policy)

setFocusProxy(self, a0)

setFont(self, a0)

setForegroundRole(self, a0)

setFrame(self, a0)

setGeometry()

setGraphicsEffect(self, effect)

setGroupSeparatorShown(self, shown)

setHidden(self, hidden)

setInputMethodHints(self, hints)

setKeyboardTracking(self, kt)

setLayout(self, a0)

setLayoutDirection(self, direction)

setLineEdit(self, e)

setLocale(self, locale)

setMask()

setMaximum(self, max)

setMaximumHeight(self, maxh)

setMaximumSize()

setMaximumWidth(self, maxw)

setMinimum(self, min)

setMinimumHeight(self, minh)

setMinimumSize()

setMinimumWidth(self, minw)

setMouseTracking(self, enable)

setObjectName(self, name)

setPalette(self, a0)

setParent()

setPrefix(self, p)

setProperty(self, name, value)

setRange(self, min, max)

setReadOnly(self, r)

setScreen(self, a0)

setShortcutAutoRepeat(self, id[, enabled])

setShortcutEnabled(self, id[, enabled])

setSingleStep(self, val)

setSizeIncrement()

setSizePolicy()

setSpecialValueText(self, s)

setStatusTip(self, a0)

setStepType(self, stepType)

setStyle(self, a0)

setStyleSheet(self, styleSheet)

setSuffix(self, s)

setTabOrder(a0, a1)

setTabletTracking(self, enable)

setToolTip(self, a0)

setToolTipDuration(self, msec)

setUpdatesEnabled(self, enable)

setValue(self, val)

setVisible(self, visible)

setWhatsThis(self, a0)

setWindowFilePath(self, filePath)

setWindowFlag(self, a0[, on])

setWindowFlags(self, type)

setWindowIcon(self, icon)

setWindowIconText(self, a0)

setWindowModality(self, windowModality)

setWindowModified(self, a0)

setWindowOpacity(self, level)

setWindowRole(self, a0)

setWindowState(self, state)

setWindowTitle(self, a0)

setWrapping(self, w)

set_timeout(timeout)

set the timeout of the timer to a custom value

sharedPainter(self)

show(self)

showEvent(self, e)

showFullScreen(self)

showMaximized(self)

showMinimized(self)

showNormal(self)

signalsBlocked(self)

singleStep(self)

size(self)

sizeHint(self)

sizeIncrement(self)

sizePolicy(self)

specialValueText(self)

stackUnder(self, a0)

startTimer(self, interval[, timerType])

statusTip(self)

stepBy(self, steps)

stepDown(self)

stepEnabled(self)

stepType(self)

stepUp(self)

style(self)

styleSheet(self)

suffix(self)

tabletEvent(self, a0)

testAttribute(self, attribute)

text(self)

textFromValue(self, v)

thread(self)

timerEvent(self, e)

toolTip(self)

toolTipDuration(self)

tr(sourceText[, disambiguation, n])

underMouse(self)

ungrabGesture(self, type)

unsetCursor(self)

unsetLayoutDirection(self)

unsetLocale(self)

update()

updateGeometry(self)

updateMicroFocus(self[, query])

updatesEnabled(self)

validate(self, input, pos)

value(self)

valueFromText(self, text)

visibleRegion(self)

whatsThis(self)

wheelEvent(self, e)

width(self)

widthMM(self)

winId(self)

window(self)

windowFilePath(self)

windowFlags(self)

windowHandle(self)

windowIcon(self)

windowIconText(self)

windowModality(self)

windowOpacity(self)

windowRole(self)

windowState(self)

windowTitle(self)

windowType(self)

wrapping(self)

x(self)

y(self)

Attributes

customContextMenuRequested

int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

destroyed

int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

editingFinished

int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

objectNameChanged

int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

returnPressed

int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

staticMetaObject

textChanged

int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

valueChanged

int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

valueChangedDelayed

int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

windowIconChanged

int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

windowIconTextChanged

int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

windowTitleChanged

int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

delayed_emit()[source]#

stop the timer and send the current value of the QDoubleSpinBox

set_timeout(timeout)[source]#

set the timeout of the timer to a custom value