cmdline.py (419B)
1 from electrum.plugin import hook 2 from .digitalbitbox import DigitalBitboxPlugin 3 from ..hw_wallet import CmdLineHandler 4 5 class Plugin(DigitalBitboxPlugin): 6 handler = CmdLineHandler() 7 @hook 8 def init_keystore(self, keystore): 9 if not isinstance(keystore, self.keystore_class): 10 return 11 keystore.handler = self.handler 12 13 def create_handler(self, window): 14 return self.handler