tools/docco/rl_doc_utils.py
branchpy33
changeset 3723 99aa837b6703
parent 3721 0c93dd8ff567
child 3789 5bc95e1f3dd4
equal deleted inserted replaced
3722:29c11b905751 3723:99aa837b6703
   306         return figures.Figure.wrap(self, availWidth, availHeight)
   306         return figures.Figure.wrap(self, availWidth, availHeight)
   307 
   307 
   308     def getStyleText(self, style):
   308     def getStyleText(self, style):
   309         """Converts style to preformatted block of text"""
   309         """Converts style to preformatted block of text"""
   310         lines = []
   310         lines = []
   311         for (key, value) in list(style.__dict__.items()):
   311         for key, value in style.__dict__.items():
   312             lines.append('%s = %s' % (key, value))
   312             lines.append('%s = %s' % (key, value))
   313         lines.sort()
   313         lines.sort()
   314         return string.join(lines, '\n')
   314         return string.join(lines, '\n')
   315 
   315 
   316     def drawFigure(self):
   316     def drawFigure(self):
   344 
   344 
   345 
   345 
   346     def getStyleText(self, style):
   346     def getStyleText(self, style):
   347         """Converts style to preformatted block of text"""
   347         """Converts style to preformatted block of text"""
   348         lines = []
   348         lines = []
   349         for (key, value) in list(style.__dict__.items()):
   349         for key, value in style.__dict__.items():
   350             if key not in ('name','parent'):
   350             if key not in ('name','parent'):
   351                 lines.append('%s = %s' % (key, value))
   351                 lines.append('%s = %s' % (key, value))
   352         return string.join(lines, '\n')
   352         return string.join(lines, '\n')
   353 
   353 
   354 
   354