Talley Lambert
Talley Lambert
No i don't think you're abusing tooltips. I think @liaprins-czi 's info button is a much more obvious way to present this type of info anyway. I'm all for it
you'd either need to do the conversion (i.e. declare that you're working in ns instead of seconds), or we'd need to create a custom "scientific notation" widget. > A related...
you need to provide min/max values that encompass the range of valid numbers you'd like. See https://napari.org/magicgui/_autosummary/magicgui.widgets.FloatSpinBox.html#magicgui.widgets.FloatSpinBox
While this particular case is rather simple, guessing valid ranges in a more general way is not as easy as it may appear, particularly when it comes to floats. We...
awesome!! thank for taking the initiative on this! lemme take a look and give you next steps
Ok, so, the ultimate limitation here is that we don't have a protocol for something like this (a multi-numeric value), however, there's an omission from the typing in magicgui that...
if you are enjoying digging into this, I'll leave you to it and help out whenever you want. If you find that extra legwork annoying, let me know and I...
btw, let's add this to examples and aim to get it to work: ```py from typing import Tuple from magicgui import magicgui @magicgui(range_value=dict(widget_type="RangeSlider")) def func(range_value: Tuple[int, int] = (20, 80)):...
> I noticed that superqt's labeled sliders don't have an editable readout. They do also have an editable spin box. What made you say that? > maybe it's better to...
is there more to that stack trace? `rangeChanged` is from the QSlider itself (https://doc.qt.io/qt-5/qabstractslider.html) ... we can override the type if we need to, but we need to know exactly...