Got the most recent source, but it didn't work as self.gui. I noticed in the code that device_signals was a global so I used:
from calibre.gui2.device import device_signals
device_signals.device_metadata_available.connect(s elf.testconnect1)
device_signals.device_connection_changed.connect(s elf.testconnect)
And this works. Is this what you intended?
It doesn't seem to matter if its in genesis or initialization complete. I didn't even know about initialization complete - should I be using it instead of genesis.
|