From 62602fbd535172aa733221fb8a97cee5ddcb27bb Mon Sep 17 00:00:00 2001 From: Roman Rolinsky Date: Fri, 4 May 2007 13:36:59 +0000 Subject: [PATCH] test needed for wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/tools/XRCed/tools.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/wxPython/wx/tools/XRCed/tools.py b/wxPython/wx/tools/XRCed/tools.py index 42f5c7c1f8..d512ef7ba7 100644 --- a/wxPython/wx/tools/XRCed/tools.py +++ b/wxPython/wx/tools/XRCed/tools.py @@ -99,7 +99,9 @@ class Tools(wx.Panel): wx.wxEVT_COMMAND_BUTTON_CLICKED, g.frame.OnCreate) wx.EVT_KEY_DOWN(self, self.OnKeyDown) wx.EVT_KEY_UP(self, self.OnKeyUp) - self.Bind(wx.EVT_LEFT_DOWN, self.OnClickBox) + # wxMSW does not generate click events for StaticBox + if wx.Platform == '__WXMSW__': + self.Bind(wx.EVT_LEFT_DOWN, self.OnClickBox) self.drag = None @@ -161,11 +163,13 @@ class Tools(wx.Panel): if wx.Platform == '__WXMSW__': box = None for id,b in self.boxes.items(): - # Detect click on label + # How to detect a click on a label? if b.GetRect().Inside(evt.GetPosition()): box = b break - if not box: return + if not box: + evt.Skip() + return else: box = self.boxes[evt.GetId()] # Collapse/restore static box, change label -- 2.45.2