parameters: (self, fun, key)
docstring: Bind fun to key-release event of key.
          Canvas must have focus. See method listen
docstring_summary: Bind fun to key-release event of key.
          Canvas must have focus. See method listen
docstring_tokens: Bind fun to key - release event of key . Canvas must have focus . See method listen
function: def _onkey(self, fun, key):
          """Bind fun to key-release event of key.
          Canvas must have focus. See method listen
          """
          if fun is None:
              self.cv.unbind("<KeyRelease-%s>" % key, None)
          else:
              def eventfun(event):
                  fun()
              self.cv.bind("<KeyRelease-%s>" % key, eventfun)
function_tokens: def _onkey ( self , fun , key ) : if fun is None : self . cv . unbind ( "<KeyRelease-%s>" % key , None ) else : def eventfun ( event ) : fun ( ) self . cv . bind ( "<KeyRelease-%s>" % key , eventfun )