gtrace.draw.renderer

Renderer module for gtrace.draw

Attributes

__author__

__copyright__

__credits__

__license__

__version__

__maintainer__

__email__

__status__

Exceptions

UnknownShapeError

Raised when a canvas holds a shape the renderer cannot write.

Functions

renderDXF(canvas, filename)

Render a canvas into a DXF file

Module Contents

gtrace.draw.renderer.__author__ = '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: Exception

Raised 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