mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Merge pull request #1671 from Metallicow/remove-wxPy-2.9-check
Remove wxPy < 2.9 check
This commit is contained in:
@@ -36,8 +36,6 @@ import six
|
||||
|
||||
from .aui_constants import *
|
||||
|
||||
# wxPython version string
|
||||
_VERSION_STRING = wx.VERSION_STRING
|
||||
|
||||
# AuiToolBar events
|
||||
wxEVT_COMMAND_AUITOOLBAR_TOOL_DROPDOWN = wx.NewEventType()
|
||||
@@ -2612,12 +2610,7 @@ class AuiToolBar(wx.Control):
|
||||
# find out if the mouse cursor is inside the dropdown rectangle
|
||||
if overflow_rect.Contains((pt.x, pt.y)):
|
||||
|
||||
if _VERSION_STRING < "2.9":
|
||||
leftDown = wx.GetMouseState().LeftDown()
|
||||
else:
|
||||
leftDown = wx.GetMouseState().LeftIsDown()
|
||||
|
||||
if leftDown:
|
||||
if wx.GetMouseState().LeftIsDown():
|
||||
overflow_state = AUI_BUTTON_STATE_PRESSED
|
||||
else:
|
||||
overflow_state = AUI_BUTTON_STATE_HOVER
|
||||
|
||||
Reference in New Issue
Block a user