class_docstr: Helper class that groups all the user interactions for a Figure
  
  Attributes
  ----------
  figure: `Figure`
  keypresslock: `widgets.LockDraw`
      `LockDraw` object to know if the `canvas` key_press_event is locked
  messagelock: `widgets.LockDraw`
      `LockDraw` object to know if the message is available to write
class_docstr_tok: ["Helper","class","that","groups","all","the","user","interactions","for","a","Figure","Attributes","--","--","--","--","--","figure",":","`","Figure","`","keypresslock",":","`","widgets.LockDraw","`","`","LockDraw","`","object","to","know","if","the","`","canvas","`","key_press_event","is","locked","messagelock",":","`","widgets.LockDraw","`","`","LockDraw","`","object","to","know","if","the","message","is","available","to","write"]
docstr: Connect event with string *s* to *func*.
  
  Parameters
  ----------
  s : String
      Name of the event
  
      The following events are recognized
  
      - 'tool_message_event'
      - 'tool_removed_event'
      - 'tool_added_event'
  
      For every tool added a new event is created
  
      - 'tool_trigger_TOOLNAME`
        Where TOOLNAME is the id of the tool.
  
  func : function
      Function to be called with signature
      def func(event)
docstr_tok: ["Connect","event","with","string","*","s","*","to","*","func","*",".","Parameters","--","--","--","--","--","s",":","String","Name","of","the","event","The","following","events","are","recognized","-","'tool_message_event'","-","'tool_removed_event'","-","'tool_added_event'","For","every","tool","added","a","new","event","is","created","-","'tool_trigger_TOOLNAME","`","Where","TOOLNAME","is","the","id","of","the","tool",".","func",":","function","Function","to","be","called","with","signature","def","func","(","event",")"]
code: def toolmanager_connect(self, s, func):
      """
      Connect event with string *s* to *func*.
  
      Parameters
      ----------
      s : String
          Name of the event
  
          The following events are recognized
  
          - 'tool_message_event'
          - 'tool_removed_event'
          - 'tool_added_event'
  
          For every tool added a new event is created
  
          - 'tool_trigger_TOOLNAME`
            Where TOOLNAME is the id of the tool.
  
      func : function
          Function to be called with signature
          def func(event)
      """
      return self._callbacks.connect(s, func)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import warnings
  import matplotlib.cbook
  import matplotlib.widgets
  from matplotlib.rcsetup import validate_stringlist
  import matplotlib.backend_tools
label_desc: Use image node_id 6 for calling the ToolManager obj's underlying member method code with example usage: obj.toolmanager_connect(s, func) and returns: self