                   widget, text, wraplength)
      return Tooltip(widget, text=text, wraplength=wraplength)
  
  
  def set_slider_rounding(value, var, d_type, round_to, min_max):
      """ Set the underlying variable to correct number based on slider rounding """
      if d_type == float:
          var.set(round(float(value), round_to))
      else:
          steps = range(min_max[0], min_max[1] + round_to, round_to)
 
</s> remove     global _TOOLTIPS  # pylint:disable=global-statement
 </s> add  </s> remove         logger.debug("Initialized: %s: (items: %s)", self.__class__.__name__, self.items)
 </s> add         logger.debug("Initialized: %s", self.__class__.__name__) </s> remove         ctl = self.control(
            self.frame,
            variable=self.tk_var,
            command=lambda val, var=self.tk_var, dt=dtype, rn=rounding, mm=min_max:
            set_slider_rounding(val, var, dt, rn, mm))
 </s> add         cmd = partial(set_slider_rounding,
                      var=self.tk_var,
                      d_type=dtype,
                      round_to=rounding,
                      min_max=min_max)
        ctl = self.control(self.frame, variable=self.tk_var, command=cmd)
        add_command(ctl.cget("command"), cmd) </s> remove         logger.debug("Adding browser buttons: (sysbrowser: '%s'", self.browser)
 </s> add         logger.debug("Adding browser buttons: (sysbrowser: %s", self.browser)
def add_command(name, func):
    """ For controls that execute commands, the command must be added to the _COMMAND list so that
        it can be added back to the widget during cloning """
    logger.debug("Adding to commands: %s - %s", name, func)
    _COMMANDS[name] = func


                   widget, text, wraplength)
      return Tooltip(widget, text=text, wraplength=wraplength)
  
  
def add_command(name, func):
    """ For controls that execute commands, the command must be added to the _COMMAND list so that
        it can be added back to the widget during cloning """
    logger.debug("Adding to commands: %s - %s", name, func)
    _COMMANDS[name] = func


  def set_slider_rounding(value, var, d_type, round_to, min_max):
      """ Set the underlying variable to correct number based on slider rounding """
      if d_type == float:
          var.set(round(float(value), round_to))
      else:
          steps = range(min_max[0], min_max[1] + round_to, round_to)
keep keep keep add keep keep keep keep keep keep
 Bugfix: Fix commands for re-arranged panels 
lib/gui/control_helper.py