Introduction
This is a small code snippit for getting the correct PositionOfAnEvent when it is captured in a ctrl inside of a wxSplitter
Snippit
1 def GetTruePosition(self, event):
2 sashpos = self.splitter.GetSashPosition()
3 falsex = event.GetX()
4 truex = sashpos + falsex
5 print truex
6 truey = event.GetY()
7 return truex, truey
Comments
- Jeff Peck (Sanguinus@earthlink.net)
