How to load files containing NUL bytes into wxPython STC?

Thank you both for your help.

Using a StringIO buffer with the code segment:

myTextWithNULLs = ‘\0’.join(bytes_from_file) + ‘\0’

self.AddStyledText(myTextWithNULLs)

I was able to successfully display the NULLs in the StyledTextCtrl.

Regards,

T Johnson