File: Drawing12.py

package info (click to toggle)
python-reportlab 4.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,708 kB
  • sloc: python: 99,020; xml: 1,494; makefile: 143; sh: 12
file content (18 lines) | stat: -rw-r--r-- 1,219 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#Autogenerated by ReportLab guiedit do not edit
from reportlab.graphics.shapes import _DrawingEditorMixin, Drawing, Group, String
from reportlab.lib.colors import Color, CMYKColor, PCMYKColor

class ExplodedDrawing_Drawing(_DrawingEditorMixin,Drawing):
	def __init__(self,width=400,height=200,*args,**kw):
		Drawing.__init__(self,width,height,*args,**kw)
		self.transform = (1,0,0,1,0,0)
		self.add(String(34,34,'Hello World',textAnchor='start',fontName='DarkGardenMK',fontSize=12,fillColor=Color(0,0,0,1)))
		self.add(String(42,42,'Hello World',textAnchor='start',fontName='DarkGardenMK',fontSize=16,fillColor=Color(0,0,0,1)))
		self.add(String(50,50,'Hello World',textAnchor='start',fontName='DarkGardenMK',fontSize=20,fillColor=Color(0,0,0,1)))
		self.add(String(58,58,'Hello World',textAnchor='start',fontName='DarkGardenMK',fontSize=24,fillColor=Color(0,0,0,1)))
		self.add(String(66,66,'Hello World',textAnchor='start',fontName='DarkGardenMK',fontSize=28,fillColor=Color(0,0,0,1)))
		self.add(String(74,74,'Hello World',textAnchor='start',fontName='DarkGardenMK',fontSize=32,fillColor=Color(0,0,0,1)))


if __name__=="__main__": #NORUNTESTS
	ExplodedDrawing_Drawing().save(formats=['pdf'],outDir='.',fnRoot=None)