(self, widget, data=None)
Handle window destruction
Handle window destruction
Handle window destruction
def on_destroy_event(self, widget, data=None):
        """Handle window destruction"""
        dbg('destroying self')
        for terminal in self.get_terminals():
            terminal.close()
        self.cnxids.remove_all()
        self.terminator.deregister_window(self)
        self.isDestroyed = True
        self.destroy()
        del(self)
def on_destroy_event ( self , widget , data = None ) : dbg ( 'destroying self' ) for terminal in self . get_terminals ( ) : terminal . close ( ) self . cnxids . remove_all ( ) self . terminator . deregister_window ( self ) self . isDestroyed = True self . destroy ( ) del ( self )