Tutorial by Examples

import wx class MyFileDropTarget(wx.FileDropTarget): """""" def __init__(self, window): """Constructor""" wx.FileDropTarget.__init__(self) self.window = window def OnDropFiles(self, x, y, f...
import wx class MyTextDropTarget(wx.TextDropTarget): def __init__(self, textctrl): wx.TextDropTarget.__init__(self) self.textctrl = textctrl def OnDropText(self, x, y, text): self.textctrl.WriteText("(%d, %d)\n%s\n" % (x, y, text)) ret...
import wx class MyURLDropTarget(wx.PyDropTarget): def __init__(self, window): wx.PyDropTarget.__init__(self) self.window = window self.data = wx.URLDataObject(); self.SetDataObject(self.data) def OnDragOver(self, x, y, d): return wx....

Page 1 of 1