  def _get_tooltip(widget, text=None, text_variable=None, wraplength=600):
      """ Store the tooltip layout and widget id in _TOOLTIPS and return a tooltip """
      _RECREATE_OBJECTS["tooltips"][str(widget)] = {"text": text,
                                                    "text_variable": text_variable,
                                                    "wraplength": wraplength}
      logger.debug("Adding to tooltips dict: (widget: %s. text: '%s', wraplength: %s)",
                   widget, text, wraplength)
      return Tooltip(widget, text=text, text_variable=text_variable, wraplength=wraplength)
  
  
  def _get_contextmenu(widget):
      """ Create a context menu, store its mapping and return """
      rc_menu = ContextMenu(widget)
 
</s> remove def _get_tooltip(widget, text=None, text_variable=None, wraplength=600):
 </s> add def _get_tooltip(widget, text=None, text_variable=None, wrap_length=600): </s> remove                  text_variable=None, waittime=400, wraplength=250):
 </s> add                  text_variable=None, wait_time=400, wrap_length=250): </s> remove         location = FileHandler("dir", None).retfile
 </s> add         location = FileHandler("dir", None).return_file </s> remove         graphlocation = FileHandler("dir", None).retfile
 </s> add         graphlocation = FileHandler("dir", None).return_file </s> remove         location = FileHandler("dir", None).retfile
 </s> add         location = FileHandler("dir", None).return_file
                                                  "wrap_length": wrap_length}
    logger.debug("Adding to tooltips dict: (widget: %s. text: '%s', wrap_length: %s)",
                 widget, text, wrap_length)
    return Tooltip(widget, text=text, text_variable=text_variable, wrap_length=wrap_length)
  def _get_tooltip(widget, text=None, text_variable=None, wraplength=600):
      """ Store the tooltip layout and widget id in _TOOLTIPS and return a tooltip """
      _RECREATE_OBJECTS["tooltips"][str(widget)] = {"text": text,
                                                    "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)
    return Tooltip(widget, text=text, text_variable=text_variable, wrap_length=wrap_length)
                                                  "wrap_length": wrap_length}
    logger.debug("Adding to tooltips dict: (widget: %s. text: '%s', wrap_length: %s)",
                 widget, text, wrap_length)
    return Tooltip(widget, text=text, text_variable=text_variable, wrap_length=wrap_length)
                                                  "wrap_length": wrap_length}
    logger.debug("Adding to tooltips dict: (widget: %s. text: '%s', wrap_length: %s)",
                 widget, text, wrap_length)
    return Tooltip(widget, text=text, text_variable=text_variable, wrap_length=wrap_length)
                                                  "wrap_length": wrap_length}
    logger.debug("Adding to tooltips dict: (widget: %s. text: '%s', wrap_length: %s)",
                 widget, text, wrap_length)
    return Tooltip(widget, text=text, text_variable=text_variable, wrap_length=wrap_length)
  
  
  def _get_contextmenu(widget):
      """ Create a context menu, store its mapping and return """
      rc_menu = ContextMenu(widget)
keep keep keep keep replace replace replace replace keep keep keep keep keep
 GUI fixes
  - Split themes and styles to own module
  - Fix border on console window
  - variable name updates to make pep8 happy 
lib/gui/control_helper.py