fix: error when using SpinBox(delay) argument

This commit is contained in:
Luke Campagnola 2017-10-18 00:18:07 -07:00
parent 22b0ddaa21
commit 7be6f1e70c

View File

@ -106,11 +106,11 @@ class SpinBox(QtGui.QAbstractSpinBox):
self.skipValidate = False
self.setCorrectionMode(self.CorrectToPreviousValue)
self.setKeyboardTracking(False)
self.proxy = SignalProxy(self.sigValueChanging, slot=self.delayedChange, delay=self.opts['delay'])
self.setOpts(**kwargs)
self._updateHeight()
self.editingFinished.connect(self.editingFinishedEvent)
self.proxy = SignalProxy(self.sigValueChanging, slot=self.delayedChange, delay=self.opts['delay'])
def event(self, ev):
ret = QtGui.QAbstractSpinBox.event(self, ev)