def OnMouseLeftDown(self, evt):
self.ldPos = evt.GetEventObject().ClientToScreen(evt.GetPosition())
- if wxPlatform == "__WXMSW__": # this is weird...
- self.wPos = self.GetParent().ClientToScreen(self.GetPosition())
- else:
- self.wPos = self.GetPosition()
+ self.wPos = self.GetPosition()
self.CaptureMouse()
def OnMouseMotion(self, evt):
sz = st.GetBestSize()
panel.SetSize( (sz.width+20, sz.height+20) )
self.SetSize(panel.GetSize())
-## self.SetBackgroundColour("#FFB6C1")
-## b = wxButton(self, -1, "this is a Button", (10,10))
-## sz = b.GetBestSize()
-## self.SetSize( (sz.width+20, sz.height+20) )
def ProcessLeftDown(self, evt):