don't set hover state when button is pressed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1765,7 +1765,8 @@ class ButtonPanel(wx.PyPanel):
|
||||
self.RepaintOldSelection()
|
||||
|
||||
if btn.GetRect().Contains(event.GetPosition()):
|
||||
btn.SetStatus("Hover")
|
||||
if btn.GetStatus() != "Pressed":
|
||||
btn.SetStatus("Hover")
|
||||
else:
|
||||
btn.SetStatus("Normal")
|
||||
|
||||
|
Reference in New Issue
Block a user