Work around bug in wxpython

Button is specified as property in wx docs, but it returns bound method instead of actually being a property
This commit is contained in:
DarkPhoenix
2015-05-01 16:00:26 +03:00
parent 4e69a2656c
commit 26bba49193

View File

@@ -521,7 +521,7 @@ class FittingView(d.Display):
sFit = service.Fit.getInstance()
fitID = self.mainFrame.getActiveFit()
ctrl = wx.GetMouseState().CmdDown() or wx.GetMouseState().MiddleDown()
click = "ctrl" if ctrl is True else "right" if event.Button == 3 else "left"
click = "ctrl" if ctrl is True else "right" if event.GetButton() == 3 else "left"
sFit.toggleModulesState(fitID, self.mods[self.GetItemData(row)], mods, click)
# update state tooltip