class_docstr: Class that creates a callable object to retrieve a single mouse or
  keyboard click
docstr: Determines if it is a key event
docstr_tok: ["Determines","if","it","is","a","key","event"]
code: def post_event(self):
      """
      Determines if it is a key event
      """
      if len(self.events) == 0:
          _log.warning("No events yet")
      else:
          self.keyormouse = self.events[-1].name == "key_press_event"
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import matplotlib.lines
  import logging
label_desc: Use image node_id 2 for calling the BlockingKeyMouseInput obj's underlying member method code with example usage: obj.post_event() without return types