src/reportlab/graphics/widgetbase.py
branchpy33
changeset 3975 4a3599863c11
parent 3794 398ea04239b5
child 4252 fe660f227cac
equal deleted inserted replaced
3974:d55126858ada 3975:4a3599863c11
   502     print(len(_ItemWrapper))
   502     print(len(_ItemWrapper))
   503 
   503 
   504     d = shapes.Drawing(400, 200)
   504     d = shapes.Drawing(400, 200)
   505     tc = TwoCircles()
   505     tc = TwoCircles()
   506     d.add(tc)
   506     d.add(tc)
   507     from . import renderPDF
   507     from reportlab.graphics import renderPDF
   508     renderPDF.drawToFile(d, 'sample_widget.pdf', 'A Sample Widget')
   508     renderPDF.drawToFile(d, 'sample_widget.pdf', 'A Sample Widget')
   509     print('saved sample_widget.pdf')
   509     print('saved sample_widget.pdf')
   510 
   510 
   511     d = shapes.Drawing(400, 200)
   511     d = shapes.Drawing(400, 200)
   512     f = Face()
   512     f = Face()