File: values_dialog.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 (21 lines) | stat: -rw-r--r-- 421 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""# Input values dialog

A basic example of a user input dialog.

This will pause code execution until the user responds.

# ![Values input dialog](../../images/values_input.png){ width=50% }

```python linenums="1"
from magicgui.widgets import request_values

vals = request_values(
    age=int,
    name={"annotation": str, "label": "Enter your name:"},
    title="Hi, who are you?",
)
print(repr(vals))
```
"""

# %%