mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 10:40:44 -06:00
docs: make stopwatch use shebang instead
This commit is contained in:
parent
d90db35a84
commit
ad49a6e105
1 changed files with 4 additions and 2 deletions
6
examples/stopwatch.py
Normal file → Executable file
6
examples/stopwatch.py
Normal file → Executable file
|
@ -1,9 +1,11 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env -S viv run textual -k -s
|
||||||
|
|
||||||
"""A tui stopwatch built w/textual adapted from their tutorial:
|
"""A tui stopwatch built w/textual adapted from their tutorial:
|
||||||
https://github.com/Textualize/textual/tree/main/docs/examples/tutorial
|
https://github.com/Textualize/textual/tree/main/docs/examples/tutorial
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__import__("viv").use("textual")
|
# use shebang instead
|
||||||
|
# __import__("viv").use("textual")
|
||||||
|
|
||||||
from time import monotonic
|
from time import monotonic
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue