                  viewer = None
  
              timelapse = self._timelapse if save_iteration else {}
              trainer.train_one_step(viewer, timelapse)
              if self._stop:
                  logger.debug("Stop received. Terminating")
                  break
  
              if save_iteration or self._save_now:
                  logger.debug("Saving (save_iterations: %s, save_now: %s) Iteration: "
 
</s> remove                         if self._full_size:  # This can only be true if preview was closed
 </s> add                         if self._triggers["full_size"]:  # Can only be true if preview was closed </s> remove         self._callbacks = dict(f="_toggle_size",
                               m="_toggle_mask",
                               r="_refresh",
                               s="_save",
                               enter="_quit")
 </s> add         self._callbacks = dict(f="full_size",
                               m="toggle_mask",
                               r="refresh",
                               s="save",
                               enter="quit") </s> remove             retval = self._toggle_mask
 </s> add             retval = self._triggers["toggle_mask"] </s> remove             retval = self._refresh
 </s> add             retval = self._triggers["refresh"] </s> remove             retval = self._save
 </s> add             retval = self._triggers["save"]
            if viewer is not None and not save_iteration:
                # Spammy but required by GUI to know to update window
                print("\n")
                logger.info("[Preview Updated]")

                  viewer = None
  
              timelapse = self._timelapse if save_iteration else {}
              trainer.train_one_step(viewer, timelapse)
            if viewer is not None and not save_iteration:
                # Spammy but required by GUI to know to update window
                print("\n")
                logger.info("[Preview Updated]")

              if self._stop:
                  logger.debug("Stop received. Terminating")
                  break
  
              if save_iteration or self._save_now:
                  logger.debug("Saving (save_iterations: %s, save_now: %s) Iteration: "
keep keep keep add keep keep keep keep keep keep
 bugfix: Update preview screen in GUI 
scripts/train.py