python gui using boa

Brian Victor homeusenet2 at brianhv.org
Thu Nov 24 18:06:03 EST 2005


ash wrote:
> I have another query for you - how can i make a captionless frame
> draggable in wxWindows?

If you look at the wxPython demo, there's a Shaped Window demo under
Miscellaneous that does this.  The key portion is on line 86 in my
version:

#v+
def OnMouseMove(self, evt):
    if evt.Dragging() and evt.LeftIsDown():
        x, y = self.ClientToScreen(evt.GetPosition())
        fp = (x - self.delta[0], y - self.delta[1])
        self.Move(fp)
#v-

-- 
Brian



More information about the Python-list mailing list