gtrace.draw.renderer
Renderer module for gtrace.draw
Attributes
Exceptions
Raised when a canvas holds a shape the renderer cannot write. |
Functions
|
Render a canvas into a DXF file |
Module Contents
- gtrace.draw.renderer.__author__ = 'Yoichi Aso'
- gtrace.draw.renderer.__copyright__ = 'Copyright 2011-2026, Yoichi Aso'
- gtrace.draw.renderer.__credits__ = ['Yoichi Aso']
- gtrace.draw.renderer.__license__ = 'BSD'
- gtrace.draw.renderer.__version__ = '0.8.0'
- gtrace.draw.renderer.__maintainer__ = 'Yoichi Aso'
- gtrace.draw.renderer.__email__ = 'asoy01@gmail.com'
- gtrace.draw.renderer.__status__ = 'Beta'
- exception gtrace.draw.renderer.UnknownShapeError
Bases:
ExceptionRaised when a canvas holds a shape the renderer cannot write.
Derived from Exception, not BaseException. A BaseException walks straight through every except Exception between here and the top - including the one the notebook widget uses to turn a failure into a message the user can see - so rendering from a GUI would have failed with nothing said anywhere. The constructor was also spelt __initi__, so the message never reached the exception at all.
- gtrace.draw.renderer.renderDXF(canvas, filename)
Render a canvas into a DXF file