              child_object = self.children[child_name]
              self.destroy_tabs_children(child_object)
              self.forget(child)
  
      @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()
  
      def update_displaybook(self, *args):  # pylint: disable=unused-argument
          """ Set the display tabs based on executing task """
          command = self.wrapper_var.get()
          self.remove_tabs()
          if not command or command not in ("extract", "train", "convert"):
 
</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 </s> remove class DisplayPage(ttk.Frame):
 </s> add class DisplayPage(ttk.Frame):  # pylint: disable=too-many-ancestors
              child_object = self.children[child_name]
              self.destroy_tabs_children(child_object)
              self.forget(child)
  










      def update_displaybook(self, *args):  # pylint: disable=unused-argument
          """ Set the display tabs based on executing task """
          command = self.wrapper_var.get()
          self.remove_tabs()
          if not command or command not in ("extract", "train", "convert"):
keep keep keep keep replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 bigfix: RuntimeWarning: More than 20 figures have been opened. 
lib/gui/display.py