This is a small code snippit for getting the correct PositionOfAnEvent when it is captured in a ctrl inside of a wxSplitter


   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


- Jeff Peck (

Getting true event positions when using wxSplitters (last edited 2008-03-11 10:50:23 by localhost)

NOTE: To edit pages in this wiki you must be a member of the TrustedEditorsGroup.