This post originated from an RSS feed registered with Python Buzz
by Hans Nowak.
Original Post: Wax teaser: drag & drop
Feed Title: Efectos Especiales
Feed URL: http://www.zephyrfalcon.org/weblog2/rss.xml
Feed Description: Ramblings, rants, musings, ideas and observations. Topics include (but are not limited to): programming (especially Python), books, games (especially CCGs and board games), astrology, design, writing, painting, etc.
(Wax 0.1.29) Making a control accept drag & drop is as easy as: class MyNoteBook(NoteBook): def __init__(self, ...): ...other code here... filedrop = FileDropTarget(self, self.OnDropFiles) self.SetDropTarget(filedrop) def OnDropFiles(self, x, y, filenames): print "Dropped:", filenames # do something with filenames... ... [69 words]