mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2025-01-18 04:10:46 +00:00
add gui scripts
This commit is contained in:
parent
6e6308a17f
commit
b720494c68
@ -15,6 +15,11 @@ dependencies = [
|
||||
"tomli (>=2.0.1,<3.0) ; python_version < '3.11'",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
gui-basic = "vmcompact.gui.basic:run"
|
||||
gui-banana = "vmcompact.gui.banana:run"
|
||||
gui-potato = "vmcompact.gui.potato:run"
|
||||
|
||||
[tool.poetry]
|
||||
packages = [{ include = "vmcompact" }]
|
||||
include = ["vmcompact/img/cat.ico"]
|
||||
|
1
vmcompact/gui/banana/__init__.py
Normal file
1
vmcompact/gui/banana/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .main import run
|
11
vmcompact/gui/banana/main.py
Normal file
11
vmcompact/gui/banana/main.py
Normal file
@ -0,0 +1,11 @@
|
||||
import voicemeeterlib
|
||||
|
||||
import vmcompact
|
||||
|
||||
|
||||
def run():
|
||||
KIND_ID = 'banana'
|
||||
|
||||
with voicemeeterlib.api(KIND_ID) as vmr:
|
||||
app = vmcompact.connect(KIND_ID, vmr)
|
||||
app.mainloop()
|
1
vmcompact/gui/basic/__init__.py
Normal file
1
vmcompact/gui/basic/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .main import run
|
11
vmcompact/gui/basic/main.py
Normal file
11
vmcompact/gui/basic/main.py
Normal file
@ -0,0 +1,11 @@
|
||||
import voicemeeterlib
|
||||
|
||||
import vmcompact
|
||||
|
||||
|
||||
def run():
|
||||
KIND_ID = 'basic'
|
||||
|
||||
with voicemeeterlib.api(KIND_ID) as vmr:
|
||||
app = vmcompact.connect(KIND_ID, vmr)
|
||||
app.mainloop()
|
1
vmcompact/gui/potato/__init__.py
Normal file
1
vmcompact/gui/potato/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .main import run
|
11
vmcompact/gui/potato/main.py
Normal file
11
vmcompact/gui/potato/main.py
Normal file
@ -0,0 +1,11 @@
|
||||
import voicemeeterlib
|
||||
|
||||
import vmcompact
|
||||
|
||||
|
||||
def run():
|
||||
KIND_ID = 'potato'
|
||||
|
||||
with voicemeeterlib.api(KIND_ID) as vmr:
|
||||
app = vmcompact.connect(KIND_ID, vmr)
|
||||
app.mainloop()
|
Loading…
Reference in New Issue
Block a user