

set ( 'viewBox', '0 0 ' + str ( page_width * ratio ) + ' ' + str ( page_height * ratio )) def draw_SVG_line ( self, ( x1, y1 ), ( x2, y2 ), style, name, parent ): '''style is a dict''' line_attribs = t = inkex. set ( 'height', str ( page_height ) + 'in' ) svg_elem. set ( 'width', str ( page_width ) + 'in' ) svg_elem. getroot () page_width = width page_height = height svg_elem. draw_month ( year, month, width, height, x, y ) def change_SVG_size ( self, width, height ): ratio = 25.4 svg_elem = self. yearN month = 1 width = 9 height = 8 i = j = 0 for month in range ( 1, 13 ): i = ( month - 1 ) % 4 j = ( month - 1 ) / 4 # python 2 only x = i * 9 y = j * 8 self. DEBUG, filename = "logging.txt" ) def effect ( self ): PAGE_W = 36 PAGE_H = 24 w = PAGE_W h = PAGE_H self. add_option ( "-yearNumber", action = "store", type = "int", dest = "yearN", default = "1" ) logging. """ import inkex import simplestyle import simpletransform import sys import math import copy import os import re import datetime import calendar import logging class CreateCalendar ( inkex.

You should have received a copy of the GNU General Public License along with this program if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

See the GNU General Public License for more details.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. #! /usr/bin/python # -*- coding: utf-8 -*- """ # create_calendar.py Create post size calendar file in Inkscape Copyright (C) DecemGeorge Zhang This program is free software you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation either version 2 of the License, or (at your option) any later version.
