write() argument must be str, not bytes
Exception in Tkinter callback Traceback (most recent call last): File "/home/sforman/anaconda2/envs/mne/lib/python3.6/tkinter/__init__.py", line 1705, in __call__ return self.func(*args) File "/home/sforman/anaconda2/envs/mne/lib/python3.6/tkinter/__init__.py", line 749, in callit func(*args) File "/home/sforman/Desktop/ArchLayer/System/source/Thun/joy/gui/textwidget.py", line 121, in _saveFunc self.saver(self._get_contents()) File "/home/sforman/Desktop/ArchLayer/System/source/Thun/joy/gui/textwidget.py", line 128, in _saver f.write(text.encode('UTF_8')) TypeError: write() argument must be str, not bytes
Fixed in 786fdcbbf97114db5e394d03e5b96c94c0b7e7a8
https://osdn.net/projects/joypy/scm/hg/Joypy/commits/786fdcbbf97114db5e394d03e5b96c94c0b7e7a8
Just have to open the file in binary mode.
細節