def openDevice(device): """ """ d = RealTouchDevice() if not d.open(device["path"]): print "Open failed!" return None print "opened!" return d
def getDeviceList(): """ """ return [{"name": plugin_info["name"], "path": dev} for dev in RealTouchDevice.getDeviceList()]
def getDeviceList(): """ """ return [{ "name" : plugin_info["name"], "path" : dev } for dev in RealTouchDevice.getDeviceList()]