printrun-src/testtools/gcodeviewer.py

changeset 45
c82943fb205f
parent 15
0bbb006204fc
--- a/printrun-src/testtools/gcodeviewer.py	Tue Jan 19 20:44:16 2021 +0100
+++ b/printrun-src/testtools/gcodeviewer.py	Tue Jan 19 20:45:09 2021 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # This file is part of the Printrun suite.
 #
@@ -32,7 +32,7 @@
 build_dimensions = [200, 200, 100, 0, 0, 0]
 frame = GcodeViewFrame(None, wx.ID_ANY, 'Gcode view, shift to move view, mousewheel to set layer', size = (800, 800), build_dimensions = build_dimensions)
 gcode = gcoder.GCode(open(sys.argv[1]))
-print "Gcode loaded"
+print("Gcode loaded")
 frame.addfile(gcode)
 
 first_move = None

mercurial