How to move items smoothly in wxPython?
问题 I am trying to drag and drop a button, with the following code in wxPython, however, the drag flickers, and feels jarring, and I'm not sure why -- or how to fix it. I've pored over the wxWidgets docs, but can't seem to find out what the problem is. Thanks in advance! import wx app = wx.App(False) d = {} def wMouseDown(e): print "!!!", e.GetEventObject() def MouseDown(e): o = e.GetEventObject() sx,sy = panel.ScreenToClient(o.GetPositionTuple()) dx,dy = panel.ScreenToClient(wx.GetMousePosition(