author | lbessard |
Mon, 28 Jan 2008 11:42:17 +0100 | |
changeset 159 | 76b2facf14a2 |
parent 158 | 8a770e8d745a |
child 160 | 2b4bec4b4fda |
PLCOpenEditor.py | file | annotate | diff | comparison | revisions |
--- a/PLCOpenEditor.py Mon Jan 28 11:15:24 2008 +0100 +++ b/PLCOpenEditor.py Mon Jan 28 11:42:17 2008 +0100 @@ -1371,7 +1371,10 @@ self.RefreshToolBar() def OnProjectTreeRightUp(self, event): - cursor_pos = event.GetPosition() + if wx.Platform == '__WXMSW__': + cursor_pos = event.GetPoint() + else: + cursor_pos = event.GetPosition() selected = self.ProjectTree.GetSelection() if self.ProjectTree.GetPyData(selected) == ITEM_POU: name = self.ProjectTree.GetItemText(selected)