From 83e87b2bb3743cc04c3dfaf621e2a532eb01b14b Mon Sep 17 00:00:00 2001 From: justuswolff Date: Tue, 28 May 2024 22:01:00 +0200 Subject: [PATCH] sound fix --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 09e64c2..0728d03 100644 --- a/main.py +++ b/main.py @@ -189,10 +189,12 @@ class previewrend: def select(self, x, y): if f"{x}:{y}" in self._grid: self._grid[f"{x}:{y}"].config(background="cyan") + self.update() def deselect(self, x, y): if f"{x}:{y}" in self._grid: self._grid[f"{x}:{y}"].config(background="white") + self.update() def pix(self, x, y, text, bcolor, fcolor): self._xcam.config(text=LH.string("xcam")+str(self._cam.position.x)) @@ -636,7 +638,7 @@ class gsound: game.currentsounds.append(self) def play(self): - if self._playing == True: return + if self._playing == True: self.stop() self._sound = sa.play_buffer(self._data, 2, 2, 44100) self._playing = True