Commit 240a7c70 authored by Guillaume Seguin's avatar Guillaume Seguin

Translate debug libtatlin messages and print them to stderr

parent 7d48241f
......@@ -19,6 +19,7 @@
import time
import numpy
import math
import sys
from pyglet.gl import *
from pyglet import gl
......@@ -26,6 +27,9 @@ from pyglet.graphics.vertexbuffer import create_buffer
from . import vector
from printrun.printrun_utils import install_locale
install_locale('pronterface')
def compile_display_list(func, *options):
display_list = glGenLists(1)
glNewList(display_list, GL_COMPILE)
......@@ -265,8 +269,8 @@ class GcodeModel(Model):
t_end = time.time()
print ('Initialized Gcode model in %.2f seconds' % (t_end - t_start))
print ('Vertex count: %d' % len(self.vertices))
print >> sys.stderr, _('Initialized 3D visualization in %.2f seconds') % (t_end - t_start)
print >> sys.stderr, _('Vertex count: %d') % len(self.vertices)
def movement_color(self, move):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment