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