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