sigh, the "3" key of my keyboard is slightly broken... Also, I forgot the quotes around two parameter values:
device = lp.hwdb.devices(bus='USB', vendor_id='0x1234', product_id='0x5678')[0]
is better. USB IDs must be specfied as hex number, prefixed with '0x'
sigh, the "3" key of my keyboard is slightly broken... Also, I forgot the quotes around two parameter values:
device = lp.hwdb. devices( bus='USB' , vendor_id='0x1234', product_ id='0x5678' )[0]
is better. USB IDs must be specfied as hex number, prefixed with '0x'