]> git.saurik.com Git - wxWidgets.git/commitdiff
Only catch double click on wxMSW
authorRobin Dunn <robin@alldunn.com>
Fri, 7 Jun 2002 05:39:15 +0000 (05:39 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 7 Jun 2002 05:39:15 +0000 (05:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wxPython/lib/buttons.py

index 3098dc65905cf318c06d4b09278f7d8e15678086..c0e6dfb8f0ed7511d8bd13a3b1923e8e03a5a23b 100644 (file)
@@ -79,7 +79,8 @@ class wxGenButton(wxPyControl):
 
         EVT_LEFT_DOWN(self,        self.OnLeftDown)
         EVT_LEFT_UP(self,          self.OnLeftUp)
-        EVT_LEFT_DCLICK(self,      self.OnLeftDown)
+        if wxPlatform == '__WXMSW__':
+            EVT_LEFT_DCLICK(self,  self.OnLeftDown)
         EVT_MOTION(self,           self.OnMotion)
         EVT_SET_FOCUS(self,        self.OnGainFocus)
         EVT_KILL_FOCUS(self,       self.OnLoseFocus)