当前位置: 首页>>代码示例>>Python>>正文


Python BasePlugin.__init__方法代码示例

本文整理汇总了Python中electrum_ltc.plugins.BasePlugin.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python BasePlugin.__init__方法的具体用法?Python BasePlugin.__init__怎么用?Python BasePlugin.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在electrum_ltc.plugins.BasePlugin的用法示例。


在下文中一共展示了BasePlugin.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 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,代码行数:9,代码来源:audio_modem.py

示例2: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 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,代码行数:9,代码来源:trezor.py

示例3: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 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,代码行数:9,代码来源:qt.py

示例4: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 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,代码行数:10,代码来源:plugin.py

示例5: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 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,代码行数:10,代码来源:exchange_rate.py

示例6: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 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,代码行数:11,代码来源:exchange_rate.py

示例7: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 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,代码行数:11,代码来源:email_requests.py

示例8: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 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,代码行数:12,代码来源:exchange_rate.py

示例9: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 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,代码行数:12,代码来源:email_requests.py

示例10: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 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,代码行数:14,代码来源:exchange_rate.py

示例11: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
    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,代码行数:20,代码来源:exchange_rate.py

示例12: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 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))
开发者ID:jjkosby,项目名称:electrum-med,代码行数:7,代码来源:btchipwallet.py

示例13: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 def __init__(self, config, name):
     BasePlugin.__init__(self, config, name)
     self._is_available = self._init()
     self._requires_settings = True
     self.wallet = None
开发者ID:cryptomountain,项目名称:electrum-ltc,代码行数:7,代码来源:trezor.py

示例14: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 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")]
开发者ID:CryptoRepairCrew,项目名称:electrum-multicoin,代码行数:6,代码来源:exchange_rate.py

示例15: __init__

# 需要导入模块: from electrum_ltc.plugins import BasePlugin [as 别名]
# 或者: from electrum_ltc.plugins.BasePlugin import __init__ [as 别名]
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.target_host = 'sync.bytesized-hosting.com:9090'
     self.wallets = {}
开发者ID:Andymeows,项目名称:electrum-doge,代码行数:6,代码来源:labels.py


注:本文中的electrum_ltc.plugins.BasePlugin.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。