4

I have a PyUSB+PyQt script working on windows interfacing with a USB printer. I want to respond to printer connect/disconnect events.

I am unsure on how to write the event loop to keep monitoring the USB port. I will also have some processing going on in my main program, so should this be running in a separate thread.

Could someone help with the best practice to build this kind of a PyUSB functionality ?

Sandeep
  • 1,745
  • 3
  • 20
  • 30

0 Answers0