pyusb-keyboard-alike
pyusb-keyboard-alike copied to clipboard
thread keeps open
I could make it work, but when I put it on a multi-window app, i run the main app, and i run this in a new qwidget, i close the new window and i return to the main window. Then if i try to reopen the qwidget where i use the barcode scanner, it doesn't works because the resourse is busy. I think the problem is that the thread keeps open. Is there a kind of "thread.stop" or something like that. Sory for my english.
Yes, there is "terminate" method on QThread.
ok! the thread stops. I found that the problem is that when i open again the qwidget, "rfidreader" was already initialized, so the app doesn't responds.. how can i "finish" rfidreader when i close the qwidget? Thanks