def close(self):
if (self.closed):<EOL><INDENT>return<EOL><DEDENT>print(self.pre, "<STR_LIT>")<EOL>for child in self.children:<EOL><INDENT>child.close()<EOL><DEDENT>self.openglthread = None<EOL>self.gpu_handler = None<EOL>self.closed = True<EOL>self.window.unSetPropagate() <EOL>self.window.close()<EOL>
Called by the main gui to close the containers.  Called also when the container widget is closed

        Closed by clicking the window: goes through self.close_slot
        Closed programmatically: use this method directly