From 8439cf07cbcf71bd64bb2a129c54244a2ed220c2 Mon Sep 17 00:00:00 2001 From: Joe R Date: Thu, 23 Mar 2023 20:38:30 -0400 Subject: [PATCH] Fixed tkraise syntax to correct find card highlight overlaps. --- pysollib/game/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pysollib/game/__init__.py b/pysollib/game/__init__.py index 032c373e..c45668b2 100644 --- a/pysollib/game/__init__.py +++ b/pysollib/game/__init__.py @@ -250,12 +250,12 @@ def _highlightCards__calc_item(canvas, delta, cw, ch, s, c1, c2, color): r = MfxCanvasRectangle(canvas, x1, y1, x2, y2, width=4, fill=None, outline=color) if tkraise: - r.tkraise(c2.item) + canvas.tkraise(r) elif TOOLKIT == 'kivy': r = MfxCanvasRectangle(canvas, x1, y1, x2, y2, width=4, fill=None, outline=color) if tkraise: - r.tkraise(c2.item) + canvas.tkraise(r) elif TOOLKIT == 'gtk': r = MfxCanvasRectangle(canvas, x1, y1, x2, y2, width=4, fill=None, outline=color,