src/reportlab/lib/codecharts.py
branchpy33
changeset 3721 0c93dd8ff567
parent 3617 ae5744e97c42
child 3794 398ea04239b5
equal deleted inserted replaced
3720:7a059dde5bf5 3721:0c93dd8ff567
   148         self.calcLayout()
   148         self.calcLayout()
   149 
   149 
   150 
   150 
   151     def draw(self):
   151     def draw(self):
   152         self.drawLabels()
   152         self.drawLabels()
   153         charList = [None] * 32 + map(chr, range(32, 256))
   153         charList = [None] * 32 + list(map(chr, list(range(32, 256))))
   154 
   154 
   155         #we need to convert these to Unicode, since ReportLab
   155         #we need to convert these to Unicode, since ReportLab
   156         #2.0 can only draw in Unicode.
   156         #2.0 can only draw in Unicode.
   157 
   157 
   158         encName = self.encodingName
   158         encName = self.encodingName
   355 ##    c.setFont('Helvetica-Bold', 24)
   355 ##    c.setFont('Helvetica-Bold', 24)
   356 ##    c.drawString(72, 750, 'Big5 Code Chart Examples')
   356 ##    c.drawString(72, 750, 'Big5 Code Chart Examples')
   357 ##    #Big5CodeChart(0xA1, 'MSungStd-Light-Acro','ETenms-B5-H').drawOn(c, 72, 500)
   357 ##    #Big5CodeChart(0xA1, 'MSungStd-Light-Acro','ETenms-B5-H').drawOn(c, 72, 500)
   358 
   358 
   359     c.save()
   359     c.save()
   360     print 'saved codecharts.pdf'
   360     print('saved codecharts.pdf')
   361 
   361 
   362 if __name__=='__main__':
   362 if __name__=='__main__':
   363     test()
   363     test()
   364 
   364 
   365 
   365