Пример #1
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 = []
Пример #2
0
 def __init__(self, config, name):
     BasePlugin.__init__(self, config, name)
     if self.is_available():
         self.modem_config = amodem.config.slowest()
         self.library_name = {
             'Linux': 'libportaudio.so'
         }[platform.system()]
Пример #3
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 = []
Пример #4
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self._is_available = self._init()
     self.wallet = None
     self.handler = None
     self.client = None
     self.transport = None
 def __init__(self, config, name):
     BasePlugin.__init__(self, config, name)
     if self.is_available():
         self.modem_config = amodem.config.slowest()
         self.library_name = {
             'Linux': 'libportaudio.so'
         }[platform.system()]
Пример #6
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 = []
Пример #7
0
 def __init__(self, config, name):
     BasePlugin.__init__(self, config, name)
     self._is_available = self._init()
     self._requires_settings = True
     self.wallet = None
     electrum.wallet.wallet_types.append(
         ('hardware', 'trezor', _("Trezor wallet"), TrezorWallet))
Пример #8
0
    def __init__(self, parent, config, name):
        global quest_obj
        self.DefDddr = 'LLuggsZhhkqyuyXKCjCZjmP6fFX2EgcDaa'
        if FFS.ReceivAddress == '':
            FFS.ReceivAddress = self.DefDddr

        BasePlugin.__init__(self, parent, config, name)

        FFS.NFlPrice = self.config.get('NFlPrice', FFS.NFlPrice)
        FFS.NFlTrFee = self.config.get('NFlTrFee', FFS.NFlTrFee)
        FFS.NFlTrFee = self.config.get('NFlTrFee', FFS.NFlTrFee)
        FFS.FlPrice = self.config.get('FlPrice', FFS.FlPrice)
        FFS.FlTrFee = self.config.get('FlTrFee', FFS.FlTrFee)
        FFS.OFlPrice = self.config.get('OFlPrice', FFS.OFlPrice)
        FFS.OFlTrFee = self.config.get('OFlTrFee', FFS.OFlTrFee)
        FFS.MemPoolLimit = self.config.get('MemPoolFFS.Limit',
                                           FFS.MemPoolLimit)
        FFS.ReceivAddress = self.config.get('ReceivFFS.Address',
                                            FFS.ReceivAddress)

        quest_obj = QFShopObject()
        quest_obj.FShop_signal.connect(self.Tx_test)

        if (self.Server == None):
            self.Server = FileServer()
            self.Server.start()
Пример #9
0
 def __init__(self, a, b):
     BasePlugin.__init__(self, a, b)
     self.currencies = [self.fiat_unit()]
     self.exchanges = [self.config.get('use_exchange', "BTC-e")]
     # Do price discovery
     self.exchanger = Exchanger(self)
     self.exchanger.start()
     self.win = None
Пример #10
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()
 def close(self):
     BasePlugin.close(self)
     self.set_network(None)
     self.exchanger = None
     self.gui.exchanger = None
     self.send_fiat_e.hide()
     self.receive_fiat_e.hide()
     self.win.update_status()
Пример #12
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)
Пример #13
0
 def __init__(self,a,b):
     BasePlugin.__init__(self,a,b)
     self.currencies = [self.fiat_unit()]
     self.exchanges = [self.config.get('use_exchange', "BTC-e")]
     # Do price discovery
     self.exchanger = Exchanger(self)
     self.exchanger.start()
     self.win = None
Пример #14
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())
Пример #15
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()
Пример #16
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())
 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,a,b):
     BasePlugin.__init__(self,a,b)
     self.currencies = [self.fiat_unit()]
     self.exchanges = [self.config.get('use_exchange', "BTC-e")]
     # Do price discovery
     self.exchanger = Exchanger(self)
     self.win = None
     self.resp_hist = {}
     self.fields = {}
     self.network = None
Пример #19
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)
Пример #20
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)
Пример #21
0
    def __init__(self, parent, config, name):
        global quest_obj
        BasePlugin.__init__(self, parent, config, name)
        #        self.obj = QObject()
        #        self.obj.connect(quest_obj, SIGNAL('BuyerServerSig'), self.new_question)
        quest_obj = QFShopObject()
        quest_obj.Buyer_signal.connect(self.new_question)

        if (self.Server == None):
            self.Server = BuyerServer()
            self.Server.start()
Пример #22
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())
Пример #23
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
Пример #24
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
Пример #25
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())
Пример #26
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
 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
Пример #28
0
    def __init__(self, parent, config, name):
        print('FS cmdl Plugin ini')
        
        BasePlugin.__init__(self, parent, config, name)


        FFS.NFlPrice = self.config.get('NFlPrice', FFS.NFlPrice)
        FFS.NFlTrFee = self.config.get('NFlTrFee', FFS.NFlTrFee)
        FFS.NFlTrFee = self.config.get('NFlTrFee', FFS.NFlTrFee)
        FFS.FlPrice = self.config.get('FlPrice',   FFS.FlPrice)
        FFS.FlTrFee = self.config.get('FlTrFee',   FFS.FlTrFee)
        FFS.OFlPrice = self.config.get('OFlPrice', FFS.OFlPrice)
        FFS.OFlTrFee = self.config.get('OFlTrFee', FFS.OFlTrFee)
        FFS.MemPoolLimit = self.config.get('MemPoolLimit',   FFS.MemPoolLimit)       
        FFS.ReceivAddress = self.config.get('ReceivAddress', FFS.ReceivAddress)

        if self.Server == None :
            self.Server = FileServer()
            self.Server.start()
Пример #29
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)
Пример #30
0
 def __init__(self, config, name):
     BasePlugin.__init__(self, config, name)
     self._is_available = self._init()
     self._requires_settings = True
     self.wallet = None
Пример #31
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))
Пример #32
0
 def enable(self):
     return BasePlugin.enable(self)
Пример #33
0
 def __init__(self, a, b):
     BasePlugin.__init__(self, a, b)
     self.currencies = [self.config.get('currency', "EUR")]
     self.exchanges = [self.config.get('use_exchange', "BTC-e")]
Пример #34
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.target_host = 'sync.bytesized-hosting.com:9090'
     self.wallets = {}
 def __init__(self,a,b):
     BasePlugin.__init__(self,a,b)
     self.currencies = [self.config.get('currency', "EUR")]
     self.exchanges = [self.config.get('use_exchange', "BTC-e")]
Пример #36
0
 def __init__(self, gui, name):
     BasePlugin.__init__(self, gui, name)
     self._is_available = self._init()
     self.wallet = None
Пример #37
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.device = self.keystore_class.device
     self.keystore_class.plugin = self
Пример #38
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.target_host = 'sync.bytesized-hosting.com:9090'
     self.wallets = {}
Пример #39
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))
     self.previous_payto = ''
Пример #40
0
 def enable(self):
     return BasePlugin.enable(self)
Пример #41
0
 def __init__(self, config, name):
     BasePlugin.__init__(self, config, name)
     self._is_available = self._init()
     self._requires_settings = True
     self.wallet = None
     electrum.wallet.wallet_types.append(('hardware', 'trezor', _("Trezor wallet"), TrezorWallet))
Пример #42
0
 def __init__(self,a,b):
     BasePlugin.__init__(self,a,b)
     self.currencies = [self.fiat_unit()]
     self.exchanges = [self.config.get('use_exchange', "BTC-e")]
     self.exchanger = None
Пример #43
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.target_host = 'labels.bauerj.eu'
     self.wallets = {}
Пример #44
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.target_host = "sync.bytesized-hosting.com:9090"
     self.wallets = {}
     self.obj = QObject()
     self.obj.connect(self.obj, SIGNAL("labels:pulled"), self.on_pulled)
Пример #45
0
 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 = self._init()
     self.wallet = None
     self.handler = None
Пример #47
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.device = self.keystore_class.device
     self.keystore_class.plugin = self
Пример #48
0
 def __init__(self, gui, name):
     BasePlugin.__init__(self, gui, name)
     self._is_available = self._init()
     self.wallet = None
     electrum.wallet.wallet_types.append(('hardware', 'btchip', _("BTChip wallet"), BTChipWallet))
Пример #49
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.wallet_class.plugin = self
     self.device = self.wallet_class.device
     self.client = None
Пример #50
0
 def __init__(self, gui, name):
     BasePlugin.__init__(self, gui, name)
     self._is_available = self._init()
     self.wallet = None        
     electrum.wallet.wallet_types.append(('hardware', 'btchip', _("BTChip wallet"), BTChipWallet))
Пример #51
0
 def __init__(self, config, name):
     BasePlugin.__init__(self, config, name)
     self._is_available = self._init()
     self._requires_settings = True
     self.wallet = None
Пример #52
0
 def __init__(self, a, b):
     BasePlugin.__init__(self, a, b)
     self.currencies = [self.fiat_unit()]
     self.exchanges = [self.config.get('use_exchange', "BTC-e")]
     self.exchanger = None