def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.listener = None self.obj = QObject() self.obj.connect(self.obj, SIGNAL('cosigner:receive'), self.on_receive) self.keys = [] self.cosigner_list = []
def __init__(self, config, name): BasePlugin.__init__(self, config, name) self._is_available = self._init() self._requires_settings = True self.wallet = None if self._is_available: electrum.wallet.wallet_types.append(('hardware', 'trezor', _("Trezor wallet"), TrezorWallet))
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.listener = None self.obj = QReceiveSignalObject() self.obj.cosigner_receive_signal.connect(self.on_receive) self.keys = [] self.cosigner_list = []
def __init__(self, config, name): BasePlugin.__init__(self, config, name) self._is_available = self._init() self.tab_index = None self.wallet = None if self._is_available: electrum.wallet.wallet_types.append(('hardware', 'digibox', _("Digital Bitbox"), DigiboxWallet))
def close(self): BasePlugin.close(self) for window in self.parent.windows: window.send_fiat_e.hide() window.receive_fiat_e.hide() window.update_history_tab() window.update_status()
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.seed_func = lambda x: bitcoin.is_new_seed(x, SEED_PREFIX) # Keyed by wallet to handle multiple pertinent windows. Each # wallet is a 2fa wallet. Each value is a dictionary with # information about the wallet for the plugin self.wallets = {}
def __init__(self, config, name): BasePlugin.__init__(self, config, name) self._is_available = self._init() self.wallet = None self.handler = None self.client = None self.transport = None
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) if self.is_available(): self.modem_config = amodem.config.slowest() self.library_name = { 'Linux': 'libportaudio.so' }[platform.system()]
def __init__(self, x, y): BasePlugin.__init__(self, x, y) electrum.wallet.wallet_types.append( ('twofactor', '2fa', _("Wallet with two-factor authentication"), Wallet_2fa)) self.seed_func = lambda x: bitcoin.is_new_seed(x, SEED_PREFIX) self.billing_info = None self.is_billing = False
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.calibration_h = self.config.get('calibration_h') self.calibration_v = self.config.get('calibration_v') self.size = (152,96) #(230,124) (ceramic glass) self.base_dir = config.electrum_path()+'/revealer/' if not os.path.exists(self.base_dir): os.mkdir(self.base_dir)
def __init__(self,a,b): BasePlugin.__init__(self,a,b) self.currencies = [self.fiat_unit()] self.exchanges = [self.config.get('use_exchange', "Blockchain")] # Do price discovery self.exchanger = Exchanger(self) self.exchanger.start() self.win = None
def __init__(self, a, b): BasePlugin.__init__(self, a, b) self.currencies = [self.fiat_unit()] self.exchanges = [self.config.get('use_exchange', "Blockchain")] # Do price discovery self.exchanger = Exchanger(self) self.exchanger.start() self.win = None
def __init__(self, config, name): BasePlugin.__init__(self, config, name) self._is_available = self._init() self._requires_settings = True self.wallet = None if self._is_available: electrum.wallet.wallet_types.append( ('hardware', 'trezor', _("Trezor wallet"), TrezorWallet))
def close(self): BasePlugin.close(self) self.exchanger.stop() self.exchanger = None self.gui.exchanger = None self.send_fiat_e.hide() self.receive_fiat_e.hide() self.win.update_status()
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.main_thread = threading.current_thread() self.device = self.wallet_class.device self.wallet_class.plugin = self self.prevent_timeout = time.time() + 3600 * 24 * 365 if self.libraries_available: self.device_manager().register_devices(self.DEVICE_IDS)
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.ccy = self.get_currency() self.history_used_spot = False self.ccy_combo = None self.hist_checkbox = None is_exchange = lambda obj: (inspect.isclass(obj) and issubclass(obj, ExchangeBase) and obj != ExchangeBase) self.exchanges = dict(inspect.getmembers(sys.modules[__name__], is_exchange)) self.set_exchange(self.config_exchange())
def __init__(self, a, b): BasePlugin.__init__(self, a, b) self.imap_server = self.config.get('email_server', '') self.username = self.config.get('email_username', '') self.password = self.config.get('email_password', '') if self.imap_server and self.username and self.password: self.processor = Processor(self.imap_server, self.username, self.password, self.on_receive) self.processor.start() self.win = None
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.ccy = self.get_currency() self.history_used_spot = False self.ccy_combo = None self.hist_checkbox = None self.exchanges = get_exchanges() self.exchanges_by_ccy = get_exchanges_by_ccy() self.set_exchange(self.config_exchange())
def close(self): # Get rid of hooks before updating status bars. BasePlugin.close(self) self.update_status_bars() self.refresh_headers() for window, data in self.windows.items(): for edit in data['edits']: edit.hide() window.update_status()
def __init__(self,a,b): BasePlugin.__init__(self,a,b) self.currencies = [self.fiat_unit()] self.exchanges = [self.config.get('use_exchange', "Blockchain")] # Do price discovery self.exchanger = Exchanger(self) self.win = None self.resp_hist = {} self.fields = {} self.network = None
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.device = self.wallet_class.device self.wallet_class.plugin = self self.prevent_timeout = time.time() + 3600 * 24 * 365 # A set of client instances to USB paths self.clients = set() # The device wallets we have seen to inform on reconnection self.paired_wallets = set() self.last_scan = 0
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.imap_server = self.config.get('email_server', '') self.username = self.config.get('email_username', '') self.password = self.config.get('email_password', '') if self.imap_server and self.username and self.password: self.processor = Processor(self.imap_server, self.username, self.password, self.on_receive) self.processor.start() self.obj = QObject() self.obj.connect(self.obj, SIGNAL('email:new_invoice'), self.new_invoice)
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.imap_server = self.config.get('email_server', '') self.username = self.config.get('email_username', '') self.password = self.config.get('email_password', '') if self.imap_server and self.username and self.password: self.processor = Processor(self.imap_server, self.username, self.password, self.on_receive) self.processor.start() self.obj = QEmailSignalObject() self.obj.email_new_invoice_signal.connect(self.new_invoice)
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.imap_server = self.config.get('email_server', '') self.username = self.config.get('email_username', '') self.password = self.config.get('email_password', '') if self.imap_server and self.username and self.password: self.processor = Processor(self.imap_server, self.username, self.password, self.on_receive) self.processor.start() self.obj = QEmailSignalObject() self.obj.email_new_invoice_signal.connect(self.new_invoice) self.wallets = set()
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.device = self.wallet_class.device self.wallet_class.plugin = self # A set of client instances to USB paths self.clients = set() # The device wallets we have seen to inform on reconnection self.paired_wallets = set() # Do an initial scan self.last_scan = 0 self.timer_actions()
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.ccy = self.config_ccy() self.history_used_spot = False self.ccy_combo = None self.hist_checkbox = None is_exchange = lambda obj: (inspect.isclass(obj) and issubclass( obj, ExchangeBase) and obj != ExchangeBase) self.exchanges = dict( inspect.getmembers(sys.modules[__name__], is_exchange)) self.set_exchange(self.config_exchange())
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) # Signal object first self.sig = QObject() self.sig.connect(self.sig, SIGNAL("fx_quotes"), self.on_fx_quotes) self.sig.connect(self.sig, SIGNAL("fx_history"), self.on_fx_history) self.ccy = self.config_ccy() self.history_used_spot = False self.ccy_combo = None self.hist_checkbox = None self.windows = dict() is_exchange = lambda obj: (inspect.isclass(obj) and issubclass(obj, ExchangeBase) and obj != ExchangeBase) self.exchanges = dict(inspect.getmembers(sys.modules[__name__], is_exchange)) self.set_exchange(self.config_exchange())
def __init__(self, config, name): BasePlugin.__init__(self, config, name) self.balance_updater = None self.gui = None self.Locks_action = None self.Locks_currency = None self.Locks_amount = None self.btc_rate = decimal.Decimal("0.0") self.wallet = None self.tabLayout = None self.quote_button = None self.ecc_pub_key_edit = None self.ecc_priv_key_edit = None self.ca_ok_button = None self.unlock_address = None self.specify_by_currency = None
def toggle(self): out = BasePlugin.toggle(self) self.win.update_status() self.win.tabs.removeTab(1) new_send_tab = self.gui.main_window.create_send_tab() self.win.tabs.insertTab(1, new_send_tab, _('Send')) return out
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) # Signal object first self.sig = QObject() self.sig.connect(self.sig, SIGNAL('fx_quotes'), self.on_fx_quotes) self.sig.connect(self.sig, SIGNAL('fx_history'), self.on_fx_history) self.ccy = self.config_ccy() self.history_used_spot = False self.ccy_combo = None self.hist_checkbox = None self.windows = dict() is_exchange = lambda obj: (inspect.isclass(obj) and issubclass( obj, ExchangeBase) and obj != ExchangeBase) self.exchanges = dict( inspect.getmembers(sys.modules[__name__], is_exchange)) self.set_exchange(self.config_exchange())
def toggle(self): enabled = BasePlugin.toggle(self) self.win.update_status() self.win.tabs.removeTab(1) new_send_tab = self.gui.main_window.create_send_tab() self.win.tabs.insertTab(1, new_send_tab, _('Send')) if enabled: self.add_fiat_edit() return enabled
def toggle(self): out = BasePlugin.toggle(self) self.win.update_status() if self.config.get('use_exchange_rate'): try: self.fiat_button except: self.gui.main_window.show_message(_("To see fiat amount when sending bitcoin, please restart Electrum to activate the new GUI settings.")) return out
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.base_dir = config.electrum_path() + '/revealer/' if self.config.get('calibration_h') == None: self.config.set_key('calibration_h', 0) if self.config.get('calibration_v') == None: self.config.set_key('calibration_v', 0) self.calibration_h = self.config.get('calibration_h') self.calibration_v = self.config.get('calibration_v') self.version = '0' self.size = (159, 97) self.f_size = QSize(1014 * 2, 642 * 2) self.abstand_h = 21 self.abstand_v = 34 self.calibration_noise = int('10' * 128) self.rawnoise = False make_dir(self.base_dir)
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.base_dir = config.electrum_path()+'/revealer/' if self.config.get('calibration_h') == None: self.config.set_key('calibration_h', 0) if self.config.get('calibration_v') == None: self.config.set_key('calibration_v', 0) self.calibration_h = self.config.get('calibration_h') self.calibration_v = self.config.get('calibration_v') self.version = '0' self.size = (159, 97) self.f_size = QSize(1014*2, 642*2) self.abstand_h = 21 self.abstand_v = 34 self.calibration_noise = int('10' * 128) self.rawnoise = False make_dir(self.base_dir)
def __init__(self, gui, name): BasePlugin.__init__(self, gui, name) self._is_available = self._init() self.wallet = None
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.wallet_class.plugin = self
def __init__(self,a,b): BasePlugin.__init__(self,a,b) self.currencies = [self.fiat_unit()] self.exchanges = [self.config.get('use_exchange', "Blockchain")] self.exchanger = None
def __init__(self, gui, name): BasePlugin.__init__(self, gui, name) self._is_available = self._init() self.wallet = None self.handler = None
def enable(self): return BasePlugin.enable(self)
def __init__(self, a, b): BasePlugin.__init__(self, a, b) self.currencies = [self.fiat_unit()] self.exchanges = [self.config.get('use_exchange', "Blockchain")] self.exchanger = None
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self._is_available = self._init() self.wallet = None self.handler = None
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) if self.is_available(): self.modem_config = amodem.config.slowest() self.library_name = {'Linux': 'libportaudio.so'}[platform.system()]
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.target_host = 'labels.electrum.org' self.wallets = {}
def __init__(self, gui, name): BasePlugin.__init__(self, gui, name) self._is_available = OA_READY self.print_error('OA_READY is ' + str(OA_READY))
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.wallet_class.plugin = self self.requesting = False
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name)
def __init__(self, parent, config, name): BasePlugin.__init__(self, parent, config, name) self.device = self.keystore_class.device self.keystore_class.plugin = self