From 58e564cb9232bbbd60f6d14e7065bf616c9f7ae7 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 1 Mar 2007 18:52:13 +0000 Subject: [PATCH] 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 --- wxPython/wx/lib/buttonpanel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wxPython/wx/lib/buttonpanel.py b/wxPython/wx/lib/buttonpanel.py index f90a99071a..703474a94b 100644 --- a/wxPython/wx/lib/buttonpanel.py +++ b/wxPython/wx/lib/buttonpanel.py @@ -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")