當前位置: 首頁>>代碼示例>>Python>>正文


Python plugins.BasePlugin類代碼示例

本文整理匯總了Python中electrum_ltc.plugins.BasePlugin的典型用法代碼示例。如果您正苦於以下問題:Python BasePlugin類的具體用法?Python BasePlugin怎麽用?Python BasePlugin使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了BasePlugin類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

 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()]
開發者ID:Canada-eCoin,項目名稱:cdn-electrum-client,代碼行數:7,代碼來源:audio_modem.py

示例2: __init__

 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 = []
開發者ID:erdincay,項目名稱:electrum-ltc,代碼行數:7,代碼來源:qt.py

示例3: __init__

 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
開發者ID:paulmadore,項目名稱:electrum-ltc,代碼行數:7,代碼來源:trezor.py

示例4: __init__

 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)
開發者ID:zebbra2014,項目名稱:electrum-ltc,代碼行數:8,代碼來源:plugin.py

示例5: close

 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()
開發者ID:Canada-eCoin,項目名稱:cdn-electrum-client,代碼行數:8,代碼來源:exchange_rate.py

示例6: __init__

 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
開發者ID:cryptomountain,項目名稱:electrum-ltc,代碼行數:8,代碼來源:exchange_rate.py

示例7: __init__

 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
開發者ID:Canada-eCoin,項目名稱:cdn-electrum-client,代碼行數:9,代碼來源:email_requests.py

示例8: close

 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()
開發者ID:paulmadore,項目名稱:electrum-ltc,代碼行數:9,代碼來源:exchange_rate.py

示例9: __init__

 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())
開發者ID:Andymeows,項目名稱:electrum-doge,代碼行數:9,代碼來源:exchange_rate.py

示例10: __init__

 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)
開發者ID:paulmadore,項目名稱:electrum-ltc,代碼行數:10,代碼來源:email_requests.py

示例11: __init__

 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
開發者ID:Canada-eCoin,項目名稱:cdn-electrum-client,代碼行數:10,代碼來源:exchange_rate.py

示例12: __init__

 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())
開發者ID:erdincay,項目名稱:electrum-ltc,代碼行數:12,代碼來源:exchange_rate.py

示例13: toggle

 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
開發者ID:mariogrip,項目名稱:electrum-ltc,代碼行數:7,代碼來源:exchange_rate.py

示例14: __init__

    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())
開發者ID:paulmadore,項目名稱:electrum-ltc,代碼行數:18,代碼來源:exchange_rate.py

示例15: toggle

 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
開發者ID:CryptoRepairCrew,項目名稱:electrum-multicoin,代碼行數:9,代碼來源:exchange_rate.py


注:本文中的electrum_ltc.plugins.BasePlugin類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。