button.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6145
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
def OnLeftDown(self, event):
if not self.IsEnabled():
return
def OnLeftDown(self, event):
if not self.IsEnabled():
return
self.up = not self.up
self.CaptureMouse()
self.SetFocus()
self.up = not self.up
self.CaptureMouse()
self.SetFocus()
def OnLeftUp(self, event):
if not self.IsEnabled():
return
def OnLeftUp(self, event):
if not self.IsEnabled():
return
+ if self.up != self.saveUp:
+ self.Notify()
self.ReleaseMouse()
self.Refresh()
self.ReleaseMouse()
self.Refresh()