(self)
Check that we still have a reason to exist
Check that we still have a reason to exist
Check that we still have a reason to exist
def hoover(self):
        """Check that we still have a reason to exist"""
        if len(self.children) == 1:
            dbg('Paned::hoover: We only have one child, die')
            parent = self.get_parent()
            child = self.children[0]
            self.remove(child)
            parent.replace(self, child)
            del(self)
def hoover ( self ) : if len ( self . children ) == 1 : dbg ( 'Paned::hoover: We only have one child, die' ) parent = self . get_parent ( ) child = self . children [ 0 ] self . remove ( child ) parent . replace ( self , child ) del ( self )