#NEWLINE# def removeExistingGroupBox( self , name ) : #NEWLINE# #INDENT# '\n        Removes a group box with a given name.\n        ' #NEWLINE# boxes = [ n for n in self . items ( ) if ( type ( n ) == DrawGroupBox ) ] #NEWLINE# for box in boxes : #NEWLINE# #INDENT# if ( box . name == name ) : #NEWLINE# #INDENT# self . removeItem ( box ) #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# raise RuntimeError ( ( 'Group box named %s does not appear to exist in the QGraphicsScene.' % name ) )