-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'FloatSlider' widget crash when setting up a minimum value #505
Comments
Hi @lorenzocerrone, can you also tell me what version of superqt you have installed? (and, perhaps try updating it with I am able to reproduce the problem with setting the min and max (and seeing a weird range)... but haven't been able to get the crash yet |
ah nevermind... took another look at the code, I thought we were using superqt's DoubleSlider here, but it looks like not. Will try to get this fixed soon, thanks for reporting |
Just encountered the same (probably) issue, from magicgui import magicgui
@magicgui(auto_call=True, f=dict(widget_type='FloatSlider', min=0.5))
def a(f: float = 1):
print(f)
a.show() The slider works fine, and the printed values are in the correct range. However, the label is the problem: And if I try to edit it, this error appears: File ~/git/magicgui/src/magicgui/backends/_qtpy/widgets.py:650, in Slider._on_readout_change(self)
649 def _on_readout_change(self):
--> 650 self._qwidget.setValue(self._pre_set_hook(self._readout_widget.value()))
OverflowError: argument 1 overflowed: value must be in the range -2147483648 to 2147483647 |
Fixed in 0.6.1 |
Describe the bug
In magicgui 0.6.0 setting up a
min
value different from0.
for theFloatSlider
causes two bugs in the widget.Some more details:
min=0.
the widget works normally.Traceback
as above.To Reproduce
Screenshots
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: