From 5245fb925684b4ebe056e6509bfeca6b167903b5 Mon Sep 17 00:00:00 2001 From: Hamilton Kibbe Date: Tue, 5 Jun 2018 08:57:37 -0400 Subject: Fix hard requirement of cairo per #83, and add stubs for required subclass methods to GerberContext per #84 --- examples/cairo_example.py | 3 ++- examples/pcb_example.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/cairo_example.py b/examples/cairo_example.py index fcd7a44..ecfed4d 100644 --- a/examples/cairo_example.py +++ b/examples/cairo_example.py @@ -25,7 +25,8 @@ a .png file. import os from gerber import load_layer -from gerber.render import GerberCairoContext, RenderSettings, theme +from gerber.render import RenderSettings, theme +from gerber.render.cairo_backend import GerberCairoContext GERBER_FOLDER = os.path.abspath(os.path.join(os.path.dirname(__file__), 'gerbers')) diff --git a/examples/pcb_example.py b/examples/pcb_example.py index 9e066a8..34afee6 100644 --- a/examples/pcb_example.py +++ b/examples/pcb_example.py @@ -22,7 +22,8 @@ images using the PCB interface import os from gerber import PCB -from gerber.render import GerberCairoContext, theme +from gerber.render import theme +from gerber.render.cairo_backend import GerberCairoContext GERBER_FOLDER = os.path.abspath(os.path.join(os.path.dirname(__file__), 'gerbers')) -- cgit