(verbose=False, **kwargs)
return _DescriptorInfo(strings)
Show information about connected devices.

    The verbose flag sets to verbose or not.
    **kwargs are passed directly to the find() function.
Show information about connected devices.
Show information about connected devices .
def show_devices(verbose=False, **kwargs):
    """Show information about connected devices.

    The verbose flag sets to verbose or not.
    **kwargs are passed directly to the find() function.
    """
    kwargs["find_all"] = True
    devices = find(**kwargs)
    strings = ""
    for device in devices:
        if not verbose:
            strings +=  "%s, %s\n" % (device._str(), _try_lookup(
                _lu.device_classes, device.bDeviceClass))
        else:
            strings += "%s\n\n" % str(device)

    return _DescriptorInfo(strings)
def show_devices ( verbose = False , * * kwargs ) : kwargs [ "find_all" ] = True devices = find ( * * kwargs ) strings = "" for device in devices : if not verbose : strings += "%s, %s\n" % ( device . _str ( ) , _try_lookup ( _lu . device_classes , device . bDeviceClass ) ) else : strings += "%s\n\n" % str ( device ) return _DescriptorInfo ( strings )