diff --git a/backgrounds/Karo.png b/backgrounds/Karo.png new file mode 100644 index 0000000..3829b06 Binary files /dev/null and b/backgrounds/Karo.png differ diff --git a/cfg/punkteraetsel.cfg b/cfg/punkteraetsel.cfg index 96f608a..de08232 100644 --- a/cfg/punkteraetsel.cfg +++ b/cfg/punkteraetsel.cfg @@ -6,8 +6,9 @@ # Ziel für die Grösse: # height=70mm # width=190mm -height=700 -width=1900 +height=898 +width=2776 +background=Karo.png # 0,352775 * pixellänge[bei 72dpi] = länge[mm] # -> 2,83466799 pixel entsprechen 10 mm # -> 1000 pixel mit 72dpi entsprechen 352,78 mm @@ -29,7 +30,7 @@ name = Name content=${name} # Ab dem Punkt wird zu schreiben begonnen x=0 -y=300 +y=0 length=200 # Fontname und Fonttyp fontname=ausgangsschrift diff --git a/libs/piccreate.py b/libs/piccreate.py index 005b97c..bce9e06 100644 --- a/libs/piccreate.py +++ b/libs/piccreate.py @@ -10,7 +10,7 @@ import optparse import os import ConfigParser from utils import CSVImport, CompleteEnding, get_translation -from django.utils.encoding import smart_unicode, smart_str +from django.utils.encoding import smart_str from string import Template class PicError(Exception): @@ -27,6 +27,7 @@ def create_picture_frame( config ):