MCPcopy Create free account
hub / github.com/RoganDawes/P4wnP1 / dispatch_command

Method dispatch_command

hidtools/mouse/MouseScriptParser.py:73–80  ·  view source on GitHub ↗
(self, cmd, argv)

Source from the content-addressed store, hash-verified

71
72
73 def dispatch_command(self, cmd, argv):
74 method_name = "DO_" + cmd
75 try:
76 method = getattr(self, method_name)
77 except AttributeError:
78 print "Error: Missing implementation for {0}, commans '{1}' ignored".format(method_name, cmd)
79 return
80 method(argv)
81
82
83 def DO_BUTTONS(self, argv):

Callers 1

executeScriptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected