Get paremeters entered by a widget
See original GitHub issueHello,
After tweaking the parameters, I would like to know if it is possible to get the values back entered in the widget?
I suspect that it is in
viewer.window
But not sure then in which subsection could be.
Thank you
Issue Analytics
- State:
- Created 2 years ago
- Comments:20 (12 by maintainers)
Top Results From Across the Web
Pass parameters from a custom widget to a script
Take a look at the widget and code I posted for scene control and modification and you'll see an example. The widget sets...
Read more >pass parameter to page with widget via page url - ServiceNow
Solved: in service portal i have a page with one widget the server script on the widget needs a sysid i thought i...
Read more >How can I get input parameters from url and execut...
I've got a web appbuilder app with a geoprocessing widget that I'd like to take a parameter from the url and execute the...
Read more >Pass method as parameter to a widget - dart - Stack Overflow
@user3833732 when you add (), you are executing the function and getting the response when the code is run. When you skip the...
Read more >Input Parameters in Widgets - Zoho Cares
This parameter contains the details of the operator who is accessing the widget. It is available in the detail handler and in the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

you could connect the
widget.changedevent to a function that stores your parameters:you might also be interested in looking through some of the code we did in https://github.com/clEsperanto/napari_pyclesperanto_assistant (which is a similar pipeline of processing using magicgui for input). Basically, the user interactively sets up a chain of processing events using magicgui widgets. Then the task graph can be collected using the
to_daskmethod here … which outputs a dask task graph representing the functions and their arguments…another tip: If you want a dict of parameters like you have in your first example, the magicgui object has a
__signature__attribute that behaves like an inspect signature object that stays up to date: