예제 #1
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
예제 #2
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 = []
예제 #3
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
예제 #4
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 = []
예제 #5
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
예제 #6
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()
예제 #7
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)
예제 #8
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)
예제 #9
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
                                   and obj != BlockchainInfo)
        self.exchanges = dict(inspect.getmembers(sys.modules[__name__],
                                                 is_exchange))
        self.set_exchange(self.config_exchange())
예제 #10
0
 def __init__(self, gui, name):
     BasePlugin.__init__(self, gui, name)
     self._is_available = self._init()
     self.wallet = None
     self.handler = None
예제 #11
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()]
예제 #12
0
 def __init__(self, gui, name):
     BasePlugin.__init__(self, gui, name)
     self._is_available = self._init()
     self.wallet = None
     self.handler = None
예제 #13
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.wallet_class.plugin = self
예제 #14
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.device = self.keystore_class.device
     self.keystore_class.plugin = self
예제 #15
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.target_host = 'labels.bauerj.eu'
     self.wallets = {}