~ubuntu-branches/ubuntu/vivid/python-reportlab/vivid-proposed

« back to all changes in this revision

Viewing changes to demos/colors/colortest.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-01-12 02:16:21 UTC
  • mfrom: (1.2.9) (4.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20140112021621-f4mpp5qaj1dkq2yb
Tags: 2.8~20140112-1
* New upstream snapshot.
* Build python3 packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#Copyright ReportLab Europe Ltd. 2000-2012
2
2
#see license.txt for license details
3
 
__version__='''$Id: colortest.py 3959 2012-09-27 14:39:39Z robin $'''
 
3
__version__='''$Id$'''
4
4
import reportlab.pdfgen.canvas
5
5
from reportlab.lib import colors
6
6
from reportlab.lib.units import inch
64
64
    #do all named colors
65
65
    framePage(c, 'Color Demo - RGB Space - page %d' % c.getPageNumber())
66
66
 
67
 
    all_colors = reportlab.lib.colors.getAllNamedColors().items()
 
67
    all_colors = list(reportlab.lib.colors.getAllNamedColors().items())
68
68
    all_colors.sort() # alpha order by name
69
69
    c.setFont('Times-Roman', 12)
70
70
    c.drawString(72,730, 'This shows all the named colors in the HTML standard.')