From a79c81109be9ceaef5cb896c7c6b3e7d0d40e577 Mon Sep 17 00:00:00 2001 From: Joe R <joeraz5@verizon.net> Date: Sat, 15 Mar 2025 20:11:50 -0400 Subject: [PATCH] Fix binding error in Kivy --- pysollib/game/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pysollib/game/__init__.py b/pysollib/game/__init__.py index 836ce32d..20f6068b 100644 --- a/pysollib/game/__init__.py +++ b/pysollib/game/__init__.py @@ -589,10 +589,11 @@ class Game(object): if not self.cards: self.cards = self.createCards(progress=self.app.intro.progress) self.initBindings() - # self.top.bind('<ButtonPress>', self.top._sleepEvent) - # self.top.bind('<3>', self.top._sleepEvent) - self.top.bind("<FocusOut>", self.top._focusOutEvent) - self.top.bind("<FocusIn>", self.top._focusInEvent) + if TOOLKIT == 'tk': + # self.top.bind('<ButtonPress>', self.top._sleepEvent) + # self.top.bind('<3>', self.top._sleepEvent) + self.top.bind("<FocusOut>", self.top._focusOutEvent) + self.top.bind("<FocusIn>", self.top._focusInEvent) # update display properties self.canvas.busy = True # geometry