          if not graphlocation:
              return
          for graph in self.subnotebook.children.values():
              graph.save_fig(graphlocation)
 
</s> remove     @staticmethod
    def destroy_tabs_children(tab):
        """ Destroy all tabs children
            Children must be destroyed as forget only hides display
        """
        logger.debug("Destroying children for tab: %s", tab)
        for child in tab.winfo_children():
            logger.debug("Destroying child: %s", child)
            child.destroy()

 </s> add  </s> remove class DisplayOptionalPage(DisplayPage):
 </s> add class DisplayOptionalPage(DisplayPage):  # pylint: disable=too-many-ancestors </s> remove             child_object = self.children[child_name]
            self.destroy_tabs_children(child_object)
 </s> add             child_object = self.children[child_name]  # returns the OptionalDisplayPage object
            child_object.close()  # Call the OptionalDisplayPage close() method
    def close(self):
        """ Clear the plots from RAM """
        for name, graph in self.subnotebook.children.items():
            logger.debug("Clearing: %s", name)
            graph.clear()
        super().close()
          if not graphlocation:
              return
          for graph in self.subnotebook.children.values():
              graph.save_fig(graphlocation)
    def close(self):
        """ Clear the plots from RAM """
        for name, graph in self.subnotebook.children.items():
            logger.debug("Clearing: %s", name)
            graph.clear()
        super().close()
keep keep keep add
 bigfix: RuntimeWarning: More than 20 figures have been opened. 
lib/gui/display_command.py