DnD of text or files to wx.TextCtrl doesn't work on OSX (Apple doesn't let us override the build-in behavior I think) so don't use a wx.TextCrtl for the drop target.

This commit is contained in:
Robin Dunn
2016-08-02 15:08:44 -07:00
parent 287501a4f8
commit 97947ba176
3 changed files with 17 additions and 25 deletions

View File

@@ -117,6 +117,7 @@ class DataObjTests(wtc.WidgetTestCase):
def test_DataObject2(self):
# More-or-less a duplicate of the above, but with a custom data format
class MyDataObject(wx.DataObject):
def __init__(self, value=''):
wx.DataObject.__init__(self)
@@ -211,6 +212,7 @@ class DataObjTests(wtc.WidgetTestCase):
def test_DataObjectSimple3(self):
# More-or-less a duplicate of the above, but with a custom data format
class MyDataObject(wx.DataObjectSimple):
def __init__(self, value=''):
wx.DataObjectSimple.__init__(self)