That now looks ok.
That now works using Thonny, after using 2to3. when before it would not.
Thanks for all the help.
pi@raspberrypi:~ $ 2to3 -w /home/pi/tracker RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to /home/pi/tracker/audio.py RefactoringTool: No changes to /home/pi/tracker/calibration.py RefactoringTool: No changes to /home/pi/tracker/calibrationGraphics.py RefactoringTool: No changes to /home/pi/tracker/compass.py RefactoringTool: No changes to /home/pi/tracker/contacts.py RefactoringTool: No changes to /home/pi/tracker/graphics.py RefactoringTool: No changes to /home/pi/tracker/main.py RefactoringTool: Refactored /home/pi/tracker/pyscope.py --- /home/pi/tracker/pyscope.py (original) +++ /home/pi/tracker/pyscope.py (refactored) @@ -24,7 +24,7 @@ try: pygame.display.init() except pygame.error: - print 'Driver: {0} failed.'.format(driver) + print('Driver: {0} failed.'.format(driver)) continue found = True break RefactoringTool: No changes to /home/pi/tracker/resources.py RefactoringTool: Can't parse /home/pi/tracker/rotate.py: ParseError: bad input: type=3, value='"""Rotates a point around another centerPoint. Angle is in degree s. Rotation is counter-clockwise"""', context=('', (2, 0)) RefactoringTool: No changes to /home/pi/tracker/startup.py RefactoringTool: Files that were modified: RefactoringTool: /home/pi/tracker/audio.py RefactoringTool: /home/pi/tracker/calibration.py RefactoringTool: /home/pi/tracker/calibrationGraphics.py RefactoringTool: /home/pi/tracker/compass.py RefactoringTool: /home/pi/tracker/contacts.py RefactoringTool: /home/pi/tracker/graphics.py RefactoringTool: /home/pi/tracker/main.py RefactoringTool: /home/pi/tracker/pyscope.py RefactoringTool: /home/pi/tracker/resources.py RefactoringTool: /home/pi/tracker/startup.py RefactoringTool: There was 1 error: RefactoringTool: Can't parse /home/pi/tracker/rotate.py: ParseError: bad input: type=3, value='"""Rotates a point around another centerPoint. Angle is in degree s. Rotation is counter-clockwise"""', context=('', (2, 0)) pi@raspberrypi:~ $
That now works using Thonny, after using 2to3. when before it would not.
Thanks for all the help.