Example #1
0
 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 = []
Example #2
0
 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))
Example #3
0
 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 = []
Example #4
0
 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))
Example #5
0
 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 = []
Example #6
0
 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()
Example #7
0
 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 = {}
Example #8
0
 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
Example #9
0
 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()]
Example #10
0
 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
Example #11
0
 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
Example #12
0
 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)
Example #13
0
 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
Example #14
0
 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
Example #15
0
 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))
Example #16
0
 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()
Example #17
0
 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()
Example #18
0
 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())
Example #20
0
 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
Example #21
0
 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())
Example #22
0
 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
Example #23
0
 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())
Example #24
0
 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()
Example #25
0
 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()
Example #26
0
 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
Example #27
0
 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
Example #28
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)
Example #29
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 = QEmailSignalObject()
     self.obj.email_new_invoice_signal.connect(self.new_invoice)
Example #30
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 = QEmailSignalObject()
     self.obj.email_new_invoice_signal.connect(self.new_invoice)
     self.wallets = set()
Example #31
0
 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()
Example #32
0
 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())
Example #33
0
    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())
Example #34
0
 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
Example #35
0
 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
Example #36
0
 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
Example #37
0
    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())
Example #38
0
 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
Example #39
0
 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
Example #40
0
 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
Example #41
0
    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)
Example #42
0
File: qt.py Project: nvk/electrum
    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)
Example #43
0
 def __init__(self, gui, name):
     BasePlugin.__init__(self, gui, name)
     self._is_available = self._init()
     self.wallet = None
Example #44
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.wallet_class.plugin = self
Example #45
0
 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
Example #46
0
 def __init__(self, gui, name):
     BasePlugin.__init__(self, gui, name)
     self._is_available = self._init()
     self.wallet = None
     self.handler = None
Example #47
0
 def enable(self):
     return BasePlugin.enable(self)
Example #48
0
 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
Example #49
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self._is_available = self._init()
     self.wallet = None
     self.handler = None
Example #50
0
 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()]
Example #51
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.target_host = 'labels.electrum.org'
     self.wallets = {}
Example #52
0
 def __init__(self, gui, name):
     BasePlugin.__init__(self, gui, name)
     self._is_available = OA_READY
     self.print_error('OA_READY is ' + str(OA_READY))
Example #53
0
 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)
Example #55
0
 def enable(self):
     return BasePlugin.enable(self)
Example #56
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.target_host = 'labels.electrum.org'
     self.wallets = {}
Example #57
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.device = self.keystore_class.device
     self.keystore_class.plugin = self