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