Commit 10e134e3 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[widgets][spinboxes] Set default value to 0 on construction

parent c408a5a2
......@@ -66,12 +66,14 @@ class AbstractNumpySpinBox(QAbstractSpinBox):
self._minimum = self._info.min
self._maximum = self._info.max
self._value = 0
self._value = None
self.setInputMethodHints(Qt.ImhFormattedNumbersOnly)
self.lineEdit().textEdited.connect(self.__on_text_edited)
self.setValue(0)
def __on_text_edited(self):
"""Act when the spinbox line edit content has been changed"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment