parameters: (self, name=None, func=None)
return_statement: return self.tk.call(
              'wm', 'protocol', self._w, name, command)
docstring: Bind function FUNC to command NAME for this widget.
          Return the function bound to NAME if None is given. NAME could be
          e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW".
docstring_summary: Bind function FUNC to command NAME for this widget.
          Return the function bound to NAME if None is given. NAME could be
          e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW".
docstring_tokens: Bind function FUNC to command NAME for this widget . Return the function bound to NAME if None is given . NAME could be e . g . WM_SAVE_YOURSELF or WM_DELETE_WINDOW .
function: def wm_protocol(self, name=None, func=None):
          """Bind function FUNC to command NAME for this widget.
          Return the function bound to NAME if None is given. NAME could be
          e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW"."""
          if callable(func):
              command = self._register(func)
          else:
              command = func
          return self.tk.call(
              'wm', 'protocol', self._w, name, command)
function_tokens: def wm_protocol ( self , name = None , func = None ) : if callable ( func ) : command = self . _register ( func ) else : command = func return self . tk . call ( 'wm' , 'protocol' , self . _w , name , command )