Note
Click here to download the full example code
Basic example#
A basic example using magicgui.
Out:
<FunctionGui example(x: int = 0, y='hi')>
from magicgui import magicgui
@magicgui
def example(x: int, y="hi"):
"""Basic example function."""
return x, y
example.changed.connect(print)
example.show(run=True)
Total running time of the script: ( 0 minutes 0.694 seconds)
Download Python source code: basic_example.py