Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
10e134e3
Commit
10e134e3
authored
Apr 04, 2019
by
Samuel GAIST
Browse files
[widgets][spinboxes] Set default value to 0 on construction
parent
c408a5a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/widgets/spinboxes.py
View file @
10e134e3
...
...
@@ -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"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment