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:
Robin Dunn
2007-03-01 18:52:13 +00:00
parent 8cb3186049
commit 58e564cb92

View File

@@ -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")