#NEWLINE# def write_comments_vml( self ) : #NEWLINE# #INDENT# root = Element ( 'xml' ) #NEWLINE# shape_layout = SubElement ( root , ( '{%s}shapelayout' % officens ) , { #NEWLINE# #INDENT# ( '{%s}ext' % vmlns ) : 'edit' , #NEWLINE# #UNINDENT# } ) #NEWLINE# SubElement ( shape_layout , ( '{%s}idmap' % officens ) , { #NEWLINE# #INDENT# ( '{%s}ext' % vmlns ) : 'edit' , #NEWLINE# 'data' : '1' , #NEWLINE# #UNINDENT# } ) #NEWLINE# shape_type = SubElement ( root , ( '{%s}shapetype' % vmlns ) , { #NEWLINE# #INDENT# 'id' : '_x0000_t202' , #NEWLINE# 'coordsize' : '21600,21600' , #NEWLINE# ( '{%s}spt' % officens ) : '202' , #NEWLINE# 'path' : 'm,l,21600r21600,l21600,xe' , #NEWLINE# #UNINDENT# } ) #NEWLINE# SubElement ( shape_type , ( '{%s}stroke' % vmlns ) , { #NEWLINE# #INDENT# 'joinstyle' : 'miter' , #NEWLINE# #UNINDENT# } ) #NEWLINE# SubElement ( shape_type , ( '{%s}path' % vmlns ) , { #NEWLINE# #INDENT# 'gradientshapeok' : 't' , #NEWLINE# ( '{%s}connecttype' % officens ) : 'rect' , #NEWLINE# #UNINDENT# } ) #NEWLINE# for ( i , comment ) in enumerate ( self . comments , 1026 ) : #NEWLINE# #INDENT# shape = self . _write_comment_shape ( comment , i ) #NEWLINE# root . append ( shape ) #NEWLINE# #UNINDENT# return tostring ( root )