'Removes the specified panel.
:param name_or_klass: Name or class of the panel to remove.
:return: The removed panel'

def remove(self, name_or_klass):

    debug_print('removing    panel    {}'.format(name_or_klass))
    panel = self.get(name_or_klass)
    panel.on_uninstall()
    panel.hide()
    panel.setParent(None)
    return self._panels[panel.position].pop(panel.name, None)
