def OnMouseLeftDown(self, evt):
self.ldPos = evt.GetEventObject().ClientToScreen(evt.GetPosition())
- self.wPos = self.GetPosition()
+ self.wPos = self.ClientToScreen((0,0))
self.CaptureMouse()
def OnMouseMotion(self, evt):
"wxPopupWindow which disappears\n"
"automatically when the user\n"
"clicks the mouse outside it or if it\n"
- "loses focus in any other way."
+ "(or its first child) loses focus in \n"
+ "any other way."
,
pos=(10,10))
sz = st.GetBestSize()