#NEWLINE# def reload( self , **kwargs ) : #NEWLINE# #INDENT# 'Change display properties of sub-elements of one-layer ROIpack' #NEWLINE# self . svg = scrub ( self . svgfile ) #NEWLINE# self . svg = _strip_top_layers ( self . svg , self . layer ) #NEWLINE# w = float ( self . svg . getroot ( ) . get ( 'width' ) ) #NEWLINE# h = float ( self . svg . getroot ( ) . get ( 'height' ) ) #NEWLINE# self . svgshape = ( w , h ) #NEWLINE# self . rois = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for r in _find_layer ( self . svg , self . layer ) . findall ( ( '{%s}g' % svgns ) ) : #NEWLINE# #INDENT# roi = ROI ( self , r ) #NEWLINE# self . rois [ roi . name ] = roi #NEWLINE# #UNINDENT# self . set ( )