add option for controlling line-width

some printers have problems displaying .1 width lines
This commit is contained in:
Paul Molodowitch 2013-12-14 13:36:10 -08:00
parent 0ef68bce99
commit e65061645b

View File

@ -122,7 +122,7 @@ class DominionTabs:
def drawOutline(self, x, y, rightSide, isBack=False): def drawOutline(self, x, y, rightSide, isBack=False):
#draw outline or cropmarks #draw outline or cropmarks
self.canvas.saveState() self.canvas.saveState()
self.canvas.setLineWidth(0.1) self.canvas.setLineWidth(self.options.linewidth)
cropmarksright = (x == self.numTabsHorizontal-1) cropmarksright = (x == self.numTabsHorizontal-1)
cropmarksleft = (x == 0) cropmarksleft = (x == 0)
if rightSide and not self.options.sameside: if rightSide and not self.options.sameside:
@ -480,6 +480,8 @@ class DominionTabs:
help="subset of dominion expansions to produce tabs for") help="subset of dominion expansions to produce tabs for")
parser.add_option("--cropmarks",action="store_true",dest="cropmarks", parser.add_option("--cropmarks",action="store_true",dest="cropmarks",
help="print crop marks on both sides, rather than tab outlines on one") help="print crop marks on both sides, rather than tab outlines on one")
parser.add_option("--linewidth",type="float",default=.1,
help="width of lines for card outlines/crop marks")
parser.add_option("--read_yaml", action="store_true",dest="read_yaml", parser.add_option("--read_yaml", action="store_true",dest="read_yaml",
help="read yaml version of card definitions and extras") help="read yaml version of card definitions and extras")
parser.add_option("--write_yaml", action="store_true",dest="write_yaml", parser.add_option("--write_yaml", action="store_true",dest="write_yaml",