1
0

kivy: use plugins

This commit is contained in:
ThomasV
2015-10-13 12:12:49 +02:00
parent c803a8ecab
commit a5e94ef0e8
12 changed files with 92 additions and 472 deletions

View File

@@ -57,7 +57,7 @@ descriptions = [
'name': 'exchange_rate',
'fullname': _("Exchange rates"),
'description': _("Exchange rates and currency conversion tools."),
'available_for': ['qt'],
'available_for': ['qt','kivy'],
},
{
'name': 'greenaddress_instant',
@@ -78,10 +78,10 @@ descriptions = [
'name': 'labels',
'fullname': _('LabelSync'),
'description': '\n'.join([
_("The new and improved LabelSync plugin. This can sync your labels across multiple Electrum installs by using a remote database to save your data. Labels, transactions ids and addresses are encrypted before they are sent to the remote server."),
_("Synchronize your labels across multiple Electrum installs by using a remote database to save your data. Labels, transactions ids and addresses are encrypted before they are sent to the remote server."),
_("The label sync's server software is open-source as well and can be found on github.com/maran/electrum-sync-server")
]),
'available_for': ['qt']
'available_for': ['qt','kivy']
},
{
'name': 'plot',

View File

@@ -423,6 +423,7 @@ class Plugin(BasePlugin, ThreadJob):
return "%s" % (self.ccy_amount_str(value, True))
return _("No data")
@hook
def historical_value_str(self, satoshis, d_t):
rate = self.exchange.historical_rate(self.ccy, d_t)
# Frequently there is no rate for today, until tomorrow :)