  _TOOLTIPS = dict()
  
  
  def get_tooltip(widget, text, wraplength=600):
      """ Store the tooltip layout and widget id in _TOOLTIPS and return a tooltip """
      _TOOLTIPS[str(widget)] = {"text": text,
                                "wraplength": wraplength}
      logger.debug("Adding to tooltips dict: (widget: %s. text: '%s', wraplength: %s)",
 
</s> remove     global _TOOLTIPS  # pylint:disable=global-statement
 </s> add  </s> remove         if widget.configure() is None:
            return None
        for key, val in widget.configure().items():
 </s> add         for key in widget.config(): </s> remove             configuration from a widget """
 </s> add             configuration from a widget
            We use config() instead of configure() because some items (TScale) do
            not populate configure()""" </s> remove         logger.debug("Adding browser buttons: (sysbrowser: '%s'", self.browser)
 </s> add         logger.debug("Adding browser buttons: (sysbrowser: %s", self.browser)
# We store commands globally when they are created
# Because we need to add them back to newly cloned widgets
_COMMANDS = dict()

  _TOOLTIPS = dict()
  
# We store commands globally when they are created
# Because we need to add them back to newly cloned widgets
_COMMANDS = dict()

  
  def get_tooltip(widget, text, wraplength=600):
      """ Store the tooltip layout and widget id in _TOOLTIPS and return a tooltip """
      _TOOLTIPS[str(widget)] = {"text": text,
                                "wraplength": wraplength}
      logger.debug("Adding to tooltips dict: (widget: %s. text: '%s', wraplength: %s)",
keep add keep keep keep keep keep keep
 Bugfix: Fix commands for re-arranged panels 
lib/gui/control_helper.py