mirror of
https://codeberg.org/armin/noiz.git
synced 2026-09-01 05:50:52 +02:00
add noiz.py
This commit is contained in:
parent
afdd44bfa7
commit
e9b8a0bc15
2 changed files with 16 additions and 0 deletions
|
|
@ -23,3 +23,11 @@ There is a live demo available at [bsd.pm/noiz](https://bsd.pm/noiz/).
|
|||
## Usage
|
||||
|
||||
Open `index.html` in any modern browser. Click **+Folder**, **+Files**, or drag audio files onto the window.
|
||||
|
||||
## Native App (noiz.py)
|
||||
|
||||
`noiz.py` is a fully fledged local native application wrapper that runs `noiz://` in its own desktop window using [pywebview](https://pywebview.flowrl.com/). It launches the noiz:// app as a standalone application with native window via Python's webview, rather than running inside a browser tab. noiz.py is (as of now) 8 lines long.
|
||||
|
||||
```bash
|
||||
pip install pywebview && python noiz.py
|
||||
```
|
||||
|
|
|
|||
8
noiz.py
Executable file
8
noiz.py
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env python3
|
||||
import webview
|
||||
webview.create_window(
|
||||
"noiz://",
|
||||
"https://bsd.pm/noiz/"
|
||||
)
|
||||
webview.start()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue