From 6e658cd164f76a996d58771c5f4c42aee31686f5 Mon Sep 17 00:00:00 2001 From: Duane Johnson Date: Fri, 11 Nov 2011 11:11:54 -0600 Subject: [PATCH] Check for corner change on mouse move (rare case) --- xybuttons.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xybuttons.py b/xybuttons.py index 09f4659..e1dbe40 100644 --- a/xybuttons.py +++ b/xybuttons.py @@ -252,6 +252,7 @@ class XYButtons(BufferedCanvas): if not self.enabled: return + oldcorner = self.corner oldq, oldc = self.quadrant, self.concentric mpos = event.GetPosition() @@ -278,7 +279,7 @@ class XYButtons(BufferedCanvas): if mpos.x < cx and mpos.y >= cy: self.corner = 3 - if oldq != self.quadrant or oldc != self.concentric: + if oldq != self.quadrant or oldc != self.concentric or oldcorner != self.corner: self.update() def OnLeftDown(self, event):