mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 12:00:13 +01:00
Use UTI strings for custom data format names.
It seems to be required on macOS now.
This commit is contained in:
@@ -121,7 +121,7 @@ class DataObjTests(wtc.WidgetTestCase):
|
||||
class MyDataObject(wx.DataObject):
|
||||
def __init__(self, value=''):
|
||||
wx.DataObject.__init__(self)
|
||||
self.myFormats = [wx.DataFormat("My Custom DataFormat")]
|
||||
self.myFormats = [wx.DataFormat("application.MyCustomDataFormat")]
|
||||
self.myData = wtc.mybytes(value)
|
||||
|
||||
def GetAllFormats(self, d):
|
||||
@@ -216,7 +216,7 @@ class DataObjTests(wtc.WidgetTestCase):
|
||||
class MyDataObject(wx.DataObjectSimple):
|
||||
def __init__(self, value=''):
|
||||
wx.DataObjectSimple.__init__(self)
|
||||
self.SetFormat(wx.DataFormat("My Custom Data Format"))
|
||||
self.SetFormat(wx.DataFormat("application.MyCustomDataFormat"))
|
||||
self.myData = wtc.mybytes(value)
|
||||
|
||||
def GetDataSize(self):
|
||||
|
||||
Reference in New Issue
Block a user