summaryrefslogtreecommitdiff
path: root/gerber/pcb.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2016-01-01 12:25:38 -0500
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2016-01-01 12:25:38 -0500
commit6a005436b475e3517fd6a583473b60e601bcc661 (patch)
tree5678cff7ba877e9c93ea63445f081fd0430f8b4b /gerber/pcb.py
parent5430fa6738b74f324c47c947477dd5b779db5d1c (diff)
downloadgerbonara-6a005436b475e3517fd6a583473b60e601bcc661.tar.gz
gerbonara-6a005436b475e3517fd6a583473b60e601bcc661.tar.bz2
gerbonara-6a005436b475e3517fd6a583473b60e601bcc661.zip
Refactor a little
pulled all rendering stuff out of the pcb/layer objects
Diffstat (limited to 'gerber/pcb.py')
-rw-r--r--gerber/pcb.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/gerber/pcb.py b/gerber/pcb.py
index 990a05c..0518dd4 100644
--- a/gerber/pcb.py
+++ b/gerber/pcb.py
@@ -21,7 +21,6 @@ from .exceptions import ParseError
from .layers import PCBLayer, LayerSet, sort_layers
from .common import read as gerber_read
from .utils import listdir
-from .render import theme
class PCB(object):
@@ -58,23 +57,11 @@ class PCB(object):
def __init__(self, layers, name=None):
self.layers = sort_layers(layers)
self.name = name
- self._theme = theme.THEMES['Default']
- self.theme = self._theme
def __len__(self):
return len(self.layers)
@property
- def theme(self):
- return self._theme
-
- @theme.setter
- def theme(self, theme):
- self._theme = theme
- for layer in self.layers:
- layer.settings = theme[layer.layer_class]
-
- @property
def top_layers(self):
board_layers = [l for l in reversed(self.layers) if l.layer_class in ('topsilk', 'topmask', 'top')]
drill_layers = [l for l in self.drill_layers if 'top' in l.layers]