              print("\n")  # Let log print on different line from loss output
              logger.info("Refresh preview requested...")
  
          with self._lock:
              setattr(self, self._callbacks[key], True)
  
      def _on_resize(self,
                     event: backend_bases.ResizeEvent) -> None:  # noqa # pylint:disable=unused-argument
          """ If the display is set to `actual size` then the image needs to be resized on any window
          resize event. """
 
</s> remove             self._toggle_mask = True
 </s> add             self._triggers["toggle_mask"] = True </s> remove         """ Handle a GUI trigger request to set the Set the :attr:`_toggle_mask` to ``True`` to
 </s> add         """ Handle a GUI trigger request to set the mask toggle to ``True`` to </s> remove             self._refresh = True
 </s> add             self._triggers["refresh"] = True </s> remove         the :attr:`_refresh` to ``True`` to request a refresh on the next pass of the
 </s> add         the refresh trigger to ``True`` to request a refresh on the next pass of the </s> remove     @property
    def _toggle_size(self) -> bool:
        return self._full_size

    @_toggle_size.setter
    def _toggle_size(self, value: bool) -> None:  # pylint:disable=unused-argument
        """ Toggle between actual size and screen-fit size.

        Parameters
        ----------
        value: bool
            Unused, but required for setter. The size will check the previous state and switch it
            to the opposite state
        """
        self._full_size = not self._full_size
 </s> add     def _toggle_size(self) -> None:  # pylint:disable=unused-argument
        """ Toggle between actual size and screen-fit size. """
        self._triggers["full_size"] = not self._triggers["full_size"]
            if key == "f":
                self._toggle_size()
            else:
                self._triggers[self._callbacks[key]] = True
              print("\n")  # Let log print on different line from loss output
              logger.info("Refresh preview requested...")
  
          with self._lock:
            if key == "f":
                self._toggle_size()
            else:
                self._triggers[self._callbacks[key]] = True
  
      def _on_resize(self,
                     event: backend_bases.ResizeEvent) -> None:  # noqa # pylint:disable=unused-argument
          """ If the display is set to `actual size` then the image needs to be resized on any window
          resize event. """
keep keep keep keep replace keep keep keep keep keep
 bugfix: Update preview screen in GUI 
scripts/train.py