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
c408a5a2
Commit
c408a5a2
authored
Apr 04, 2019
by
Samuel GAIST
Browse files
[widgets][spinbox] Use numpy for string generation from value
parent
0ec3444c
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/widgets/spinboxes.py
View file @
c408a5a2
...
...
@@ -88,7 +88,7 @@ class AbstractNumpySpinBox(QAbstractSpinBox):
:param value numpy_type: value to change to text
"""
return
"{}"
.
format
(
value
)
return
self
.
numpy_type
(
value
).
astype
(
"str"
)
def
valueFromText
(
self
,
text
,
pos
):
"""Returns the value contained in the text
...
...
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