You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is that I would like to provide a series of choices from detectors and be able to select one or multiple of the items reported in the sequence.
As far as I've understood it's possible to do so via the FunctionGui, but the catch is that I don't actually want to execute live_count. What I would like to do is:
get the inspect.Signature object of the function;
create the widget from it;
emit a signal that sends the information currently selected in the widget to another object.
Additional I would like to add an information button that I would like to connect to a custom dialog which displays the docstring of the function.
I have been reading the documentation a bit and I believe it should be possible, but I think I'm missing something. I also attempted to write a custom Container but wasn't very good with it.
The text was updated successfully, but these errors were encountered:
As far as I've understood it's possible to do so via the FunctionGui, but the catch is that I don't actually want to execute live_count
then probably don't use @magicgui/FunctionGui ... since the main point of that is to execute a function based on parameters. I would also not suggest first getting an inspect.Signature: if you're really only creating the function just to create the widget... don't bother with the function. That's a too-high-level API for what you're doing.
❓ Questions and Help
I'm currently trying to create a widget dynamically with a function like this:
The idea is that I would like to provide a series of choices from
detectors
and be able to select one or multiple of the items reported in the sequence.As far as I've understood it's possible to do so via the
FunctionGui
, but the catch is that I don't actually want to executelive_count
. What I would like to do is:inspect.Signature
object of the function;Additional I would like to add an information button that I would like to connect to a custom dialog which displays the docstring of the function.
I have been reading the documentation a bit and I believe it should be possible, but I think I'm missing something. I also attempted to write a custom
Container
but wasn't very good with it.The text was updated successfully, but these errors were encountered: