  
      def _ask_color(self, frame, title):
          """ Pop ask color dialog set to variable and change frame color """
          color = self.option.tk_var.get()
          chosen = colorchooser.askcolor(color=color, title="{} Color".format(title))[1]
          if chosen is None:
              return
          frame.config(bg=chosen)
          self.option.tk_var.set(chosen)
  
 
</s> remove             _get_tooltip(lbl, text=self.option.helptext, wrap_length=600)
 </s> add             _get_tooltip(lbl, text=self.option.helptext) </s> remove                           name="fr_{}".format(self.option.name),
 </s> add                           name=f"fr_{self.option.name}", </s> remove                                                   "text_variable": text_variable,
                                                  "wrap_length": wrap_length}
    logger.debug("Adding to tooltips dict: (widget: %s. text: '%s', wrap_length: %s)",
                 widget, text, wrap_length)
 </s> add                                                   "text_variable": text_variable}
    logger.debug("Adding to tooltips dict: (widget: %s. text: '%s')", widget, text)

    wrap_length = 400
    if text is not None:
        while True:
            if len(text) < wrap_length * 5:
                break
            if wrap_length > 720:
                break
            wrap_length = int(wrap_length * 1.10)
 </s> remove         retval = dict()
 </s> add         retval = {} </s> remove def _get_tooltip(widget, text=None, text_variable=None, wrap_length=600):
    """ Store the tooltip layout and widget id in _TOOLTIPS and return a tooltip """
 </s> add def _get_tooltip(widget, text=None, text_variable=None):
    """ Store the tooltip layout and widget id in _TOOLTIPS and return a tooltip.

    Auto adjust tooltip width based on amount of text.

    """
        chosen = colorchooser.askcolor(color=color, title=f"{title} Color")[1]
  
      def _ask_color(self, frame, title):
          """ Pop ask color dialog set to variable and change frame color """
          color = self.option.tk_var.get()
        chosen = colorchooser.askcolor(color=color, title=f"{title} Color")[1]
          if chosen is None:
              return
          frame.config(bg=chosen)
          self.option.tk_var.set(chosen)
  
keep keep keep keep 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