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
Fjen Undso
nchl
Commits
fc16bdcc
Commit
fc16bdcc
authored
Aug 27, 2019
by
Fjen Undso
Browse files
numberbar: no float values from mouse
parent
bfd85982
Changes
1
Show whitespace changes
Inline
Side-by-side
gui/container/numberbar.py
View file @
fc16bdcc
...
...
@@ -30,7 +30,7 @@ class NumberBarContainer(FocusSwitcher):
"""Set the progress to the approx mouse position in ProgressBar."""
p
=
self
.
_get_progressbar
()
if
p
.
row
-
1
<=
my
<=
p
.
row
+
p
.
height
and
p
.
col
-
1
<=
mx
<=
p
.
col
+
p
.
width
:
val
=
255
-
(
my
-
p
.
row
)
/
p
.
height
*
255
val
=
int
(
255
-
(
my
-
p
.
row
)
/
p
.
height
*
255
)
self
.
_get_numberrange
().
set
(
val
)
p
.
set
(
val
)
...
...
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