def METHOD_NAME(self, msg, wParam, lParam):
    print("COMMAND RECEIVED", wParam)
    try:
        widget = self._widgets[LOWORD(wParam)]
        widget._on_wm_command(msg, wParam, lParam)
    except KeyError:
        pass
    return 0