(self, name=None, func=None)
return self.tk.call(
            'wm', 'protocol', self._w, name, command)
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".
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".
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 .
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)
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 )