starte von 1 als switch

This commit is contained in:
Kamil Bugajski
2012-08-20 17:24:27 +02:00
parent 55d17c3776
commit 11cbfdb510
+4 -1
View File
@@ -163,7 +163,7 @@ class Word:
content = dict()
content['posy'] = y
g = self.font.GlyphGet(c)
if c ==' ' or c.isupper() :
if options.startfrom and (c ==' ' or c.isupper()) :
counter = 0
content['posx'] = str(x)
# die Position ist erst für den nächsten Buchstaben relevant
@@ -375,6 +375,9 @@ Read Confg, create wakeup and scale this kind of jiffy box
parser.add_option("-i", "--infile", dest="infile",
help="csv file with input of names/content",
action='store')
parser.add_option("-s", "--startfrom", dest="startfrom",
help="csv file with input of names/content",
action='store_true')
parser.add_option("-o", "--outdir", dest="outdir", default=os.path.expandvars('$PICCREATE_OUT'),
help="path to the directory where the maps will be generated",
action='store')