1
0

lightning: march 2018 rebase, without integration

This commit is contained in:
Janus
2018-03-15 16:00:03 +01:00
committed by ThomasV
parent 9c454726f4
commit ad5aac1383
8 changed files with 1230 additions and 0 deletions

View File

@@ -449,6 +449,12 @@ BoxLayout:
ActionOvrButton:
name: 'network'
text: _('Network')
ActionOvrButton:
name: 'lightning_payer_dialog'
text: _('Pay Lightning Invoice')
ActionOvrButton:
name: 'lightning_channels_dialog'
text: _('Lightning Channels')
ActionOvrButton:
name: 'settings'
text: _('Settings')

View File

@@ -75,6 +75,8 @@ from electrum.util import (base_units, NoDynamicFeeEstimates, decimal_point_to_b
base_unit_name_to_decimal_point, NotEnoughFunds, UnknownBaseUnit,
DECIMAL_POINT_DEFAULT)
from .uix.dialogs.lightning_payer import LightningPayerDialog
from .uix.dialogs.lightning_channels import LightningChannelsDialog
class ElectrumWindow(App):
@@ -635,6 +637,14 @@ class ElectrumWindow(App):
self._settings_dialog.update()
self._settings_dialog.open()
def lightning_payer_dialog(self):
d = LightningPayerDialog(self)
d.open()
def lightning_channels_dialog(self):
d = LightningChannelsDialog(self)
d.open()
def popup_dialog(self, name):
if name == 'settings':
self.settings_dialog()
@@ -652,6 +662,8 @@ class ElectrumWindow(App):
ref.data = xpub
master_public_keys_layout.add_widget(ref)
popup.open()
elif name.endswith("_dialog"):
getattr(self, name)()
else:
popup = Builder.load_file('electrum/gui/kivy/uix/ui_screens/'+name+'.kv')
popup.open()