mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2024-11-21 20:30:56 +00:00
updates to reflect changes to vm-api and vban-cmd.
patch bump
This commit is contained in:
parent
ca548187f1
commit
bb65f1b819
6
poetry.lock
generated
6
poetry.lock
generated
@ -75,7 +75,7 @@ python-versions = ">=3.4"
|
||||
|
||||
[[package]]
|
||||
name = "vban-cmd"
|
||||
version = "1.2.0"
|
||||
version = "1.3.0"
|
||||
description = "Python interface for the VBAN RT Packet Service (Sendtext)"
|
||||
category = "main"
|
||||
optional = false
|
||||
@ -83,7 +83,7 @@ python-versions = ">=3.11,<4.0"
|
||||
|
||||
[[package]]
|
||||
name = "voicemeeter-api"
|
||||
version = "0.3.0"
|
||||
version = "0.6.0"
|
||||
description = "A Python wrapper for the Voiceemeter API"
|
||||
category = "main"
|
||||
optional = false
|
||||
@ -92,7 +92,7 @@ python-versions = ">=3.11,<4.0"
|
||||
[metadata]
|
||||
lock-version = "1.1"
|
||||
python-versions = "^3.11"
|
||||
content-hash = "32b324b39bf2c19f10c96c3fdc1799c9e3586e7a68c9214582ed947c7627d592"
|
||||
content-hash = "ea4dab8cdb8451fe49568aac4688fad680c0b1c18213f2ad9e7b8a50e24c389c"
|
||||
|
||||
[metadata.files]
|
||||
black = [
|
||||
|
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "voicemeeter-compact"
|
||||
version = "1.3.0"
|
||||
version = "1.3.1"
|
||||
description = "A Compact Voicemeeter Remote App"
|
||||
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
||||
license = "MIT"
|
||||
@ -15,8 +15,8 @@ include = ["vmcompact/img/cat.ico"]
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.11"
|
||||
sv-ttk = "^0.1"
|
||||
voicemeeter-api = { version = "^0.3.0", python = "^3.10" }
|
||||
vban-cmd = { version = "^1.2.0", python = "^3.10" }
|
||||
voicemeeter-api = { version = "^0.6.0", python = "^3.10" }
|
||||
vban-cmd = { version = "^1.3.0", python = "^3.10" }
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
black = {version = "^22.6.0", allow-prereleases = true}
|
||||
|
@ -34,13 +34,12 @@ class App(tk.Tk):
|
||||
super().__init__()
|
||||
|
||||
self._vmr = vmr
|
||||
self._vmr.event.add("ldirty")
|
||||
icon_path = Path(__file__).parent.resolve() / "img" / "cat.ico"
|
||||
if icon_path.is_file():
|
||||
self.iconbitmap(str(icon_path))
|
||||
self.minsize(275, False)
|
||||
self.subject = Subject()
|
||||
self.strip_levels = None
|
||||
self.bus_levels = None
|
||||
self["menu"] = Menus(self, vmr)
|
||||
self.styletable = ttk.Style()
|
||||
if _configuration.config:
|
||||
@ -139,6 +138,6 @@ def connect(kind_id: str, vmr) -> App:
|
||||
|
||||
try:
|
||||
VMMIN_cls = _apps[kind_id]
|
||||
return VMMIN_cls(vmr)
|
||||
except KeyError:
|
||||
raise VMCompactErrors(f"Invalid kind: {kind_id}")
|
||||
return VMMIN_cls(vmr)
|
||||
|
@ -288,6 +288,7 @@ class Menus(tk.Menu):
|
||||
self.vban = vban_cmd.api(kind_id, **opts)
|
||||
# login to vban interface
|
||||
self.vban.login()
|
||||
self.vban.event.add("ldirty")
|
||||
# destroy the current App frames
|
||||
self.parent._destroy_top_level_frames()
|
||||
_base_values.vban_connected = True
|
||||
|
@ -20,10 +20,8 @@ class Subject:
|
||||
def remove(self, observer):
|
||||
"""removes an observer from _observers"""
|
||||
|
||||
try:
|
||||
if observer in self._observers:
|
||||
self._observers.remove(observer)
|
||||
except ValueError:
|
||||
print(f"{observer} not in observers (ungridded)")
|
||||
|
||||
def get(self) -> list:
|
||||
"""returns the current _observers"""
|
||||
|
Loading…
Reference in New Issue
Block a user