diff --git a/wx/tools/pywxrc.py b/wx/tools/pywxrc.py index 32c1c8a6..649c0e7c 100644 --- a/wx/tools/pywxrc.py +++ b/wx/tools/pywxrc.py @@ -226,7 +226,7 @@ def __init_resources(): """ ADD_FILE_TO_MEMFS = """\ - wx.MemoryFSHandler.AddFile('XRC/%(memoryPath)s/%(filename)s', memoryview(%(filename)s)) + wx.MemoryFSHandler.AddFile('XRC/%(memoryPath)s/%(filename)s', bytearray(%(filename)s)) """ LOAD_RES_MEMFS = """\