File: basic_example.py

package info (click to toggle)
magicgui 0.9.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 21,796 kB
  • sloc: python: 11,202; makefile: 11; sh: 9
file content (16 lines) | stat: -rw-r--r-- 234 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""# Basic example

A basic example using magicgui.
"""

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)