IDLE keeps closing whenever I try to run some code.I've uninstalled IDLE and installed it again twice now. I've also tested other python files to be sure it isn't a problem in my code.
I opened Python command line, wrote from idlelib import idle, opened a Python file and tried running it and got this:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python34\lib\tkinter\__init__.py", line 1487, in __call__
return self.func(*args)
File "C:\Python34\lib\idlelib\MultiCall.py", line 179, in handler
r = l[i](event)
File "C:\Python34\lib\idlelib\ScriptBinding.py", line 127, in run_module_event
return self._run_module_event(event)
File "C:\Python34\lib\idlelib\ScriptBinding.py", line 141, in _run_module_event
code = self.checksyntax(filename)
File "C:\Python34\lib\idlelib\ScriptBinding.py", line 102, in checksyntax
return compile(source, filename, "exec")
TypeError: source code string cannot contain null bytes
I am not using Tkinter, I am using Pygame at the moment. I also know that IDLE is written in Tkinter. I am running Python 3.4 Does anyone know what this means? Or even better, how to get IDLE working again?
UPDATE: IT ONLY CRASHES WITH PYGAME PROGRAMS