From 3a0b5135daa3c71d8d10980a5838870db3b50cf3 Mon Sep 17 00:00:00 2001 From: Michael Stangl Date: Thu, 16 Aug 2012 16:55:56 +0200 Subject: [PATCH] =?UTF-8?q?-=20config=20ergaenzt=20um=20L=C3=A4ngen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cfg/punkteraetsel.cfg | 7 ++++--- libs/piccreate.py | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) 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 1d9e395..445ffdc 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 ):