#106 Add error messaging to gremlin.py

open
Chris Radek
GUI - AXIS (15)
5
2012-08-31
2012-08-31
Daniel Rogge
No

Axis has some nice error reporting when you try to load a program with bad g code: “G-Code error in testcode.ngc, near line xx of home/rogge/Desktop/testcode.ngc. Radius to end of arc differs from radius to start:”

Unfortunately, it’s only a part of the Axis.py code and not present in gremlin.py, and therefore not present in the gladevcp gremlin widget.

The attached patch duplicates Jeff’s code, but instead of displaying it in a tk window simply reports it to stderr via a self.report_gcode_error(result, seq, filename) method that gui writers or gladevcp widgets can override if desired.

Rogge

Discussion