          self._theme = get_config().user_theme["group_panel"]
          if self._style.startswith("SPanel"):
              self._theme = {**self._theme, **get_config().user_theme["group_settings"]}
  
          self.group_frames = dict()
          self._sub_group_frames = dict()
  
          canvas_kwargs = dict(bd=0, highlightthickness=0, bg=self._theme["panel_background"])
  
          self._canvas = tk.Canvas(self, **canvas_kwargs)
          self._canvas.pack(side=tk.LEFT, fill=tk.BOTH, expand=True)
 
</s> remove         retval = dict()
 </s> add         retval = {} </s> remove                 tooltip_kwargs = dict(text=self.option.helptext, wrap_length=600)
 </s> add                 tooltip_kwargs = dict(text=self.option.helptext) </s> remove         new_config = dict()
 </s> add         new_config = {} </s> remove         logcosh = losses.LogCosh() if get_backend() == "amd" else k_losses.logcosh
        self._loss_dict = dict(ffl=losses.FocalFrequencyLoss(),
                               gmsd=losses.GMSDLoss(),
                               l_inf_norm=losses.LInfNorm(),
                               laploss=losses.LaplacianPyramidLoss(),
                               logcosh=logcosh,
                               ms_ssim=losses.MSSIMLoss(),
                               mae=k_losses.mean_absolute_error,
                               mse=k_losses.mean_squared_error,
                               pixel_gradient_diff=losses.GradientLoss(),
                               ssim=losses.DSSIMObjective(),
                               smooth_loss=losses.GeneralizedLoss(),)
 </s> add 
        self.group_frames = {}
        self._sub_group_frames = {}
          self._theme = get_config().user_theme["group_panel"]
          if self._style.startswith("SPanel"):
              self._theme = {**self._theme, **get_config().user_theme["group_settings"]}
  
        self.group_frames = {}
        self._sub_group_frames = {}
        self.group_frames = {}
        self._sub_group_frames = {}
  
          canvas_kwargs = dict(bd=0, highlightthickness=0, bg=self._theme["panel_background"])
  
          self._canvas = tk.Canvas(self, **canvas_kwargs)
          self._canvas.pack(side=tk.LEFT, fill=tk.BOTH, expand=True)
keep keep keep keep replace replace keep keep keep keep keep
 Core updates
   - Change loss loading mechanism
   - Autosize tooltips based on content size
   - Random linting + code modernisation 
lib/gui/control_helper.py