TrayLayout: Fix cli

TrayLayout was still trying to produce a drawing and failed. Now TrayLayout is
not using most of the infrastructure and only TrayLayout2 has the capacity to
create a drawing.

Resolves: #172
This commit is contained in:
Florian Festi 2019-09-22 22:37:33 +02:00
parent b124c96c63
commit 3ba90c517c
1 changed files with 9 additions and 0 deletions

View File

@ -40,6 +40,12 @@ class TrayLayout(Boxes):
"--output", action="store", type=str, default="traylayout.txt",
help="name of the layout text file")
def open(self):
pass
def close(self):
pass
def fillDefault(self, x, y):
self.x = [0.0] * x
self.y = [0.0] * y
@ -86,6 +92,9 @@ class TrayLayout2(TrayLayout):
self.argparser.add_argument(
"--layout", action="store", type=str)
open = Boxes.open
close = Boxes.close
def vWalls(self, x, y):
"Number of vertical walls at a crossing"
result = 0