(self, hwnd, msg, wparam, lparam)
Run functions from ID.
Run functions from ID.
Run functions from ID .
def OnCommand(self, hwnd, msg, wparam, lparam):
        """Run functions from ID."""
        id = win32api.LOWORD(wparam)
        
        #Handle case when action isn't set
        try:
            action, args, kwargs = self.menu_actions_by_id[id]
            self.logger.info('Function "%s" was called.', action.__name__)
        except KeyError:
            pass
        else:
            action(self, *args, **kwargs)
def OnCommand ( self , hwnd , msg , wparam , lparam ) : id = win32api . LOWORD ( wparam ) #Handle case when action isn't set try : action , args , kwargs = self . menu_actions_by_id [ id ] self . logger . info ( 'Function "%s" was called.' , action . __name__ ) except KeyError : pass else : action ( self , * args , * * kwargs )