CallFunc calls the given function in the context of the given widget, popping up a dialog to prompt for any arguments and show the return values of the function. It is a helper function that uses [NewSoloFuncButton] under the hood.
(ctx Widget, fun any)
| 24 | // values of the function. It is a helper function that uses [NewSoloFuncButton] |
| 25 | // under the hood. |
| 26 | func CallFunc(ctx Widget, fun any) { |
| 27 | NewSoloFuncButton(ctx).SetFunc(fun).CallFunc() |
| 28 | } |
| 29 | |
| 30 | // NewSoloFuncButton returns a standalone [FuncButton] with a fake parent |
| 31 | // with the given context for popping up any dialogs. |