commit 03ab2dfefe14c9e98a7555080b7d81c10bf1bac9
parent e5778316e847eefe25aede2137123546a0540915
Author: ThomasV <thomasv@electrum.org>
Date: Wed, 7 Oct 2015 10:13:40 +0200
kivy: initial network dialog
Diffstat:
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/gui/kivy/uix/ui_screens/network.kv b/gui/kivy/uix/ui_screens/network.kv
@@ -1,10 +1,30 @@
Popup:
- id: network
+ id: nd
title: _('Network')
+
+ on_open:
+ host.text, nd.port, nd.protocol, nd.proxy, auto_connect.active = app.network.get_parameters()
+
+ on_dismiss:
+ app.network.set_parameters(host.text, nd.port, nd.protocol, nd.proxy, auto_connect.active)
+
BoxLayout:
+ orientation: 'vertical'
+
+ GridLayout:
+ cols: 2
+ Label:
+ text: _('Auto-connect')
+ CheckBox:
+ id: auto_connect
+ size_hint_y: None
+ Label:
+ text: _('Server')
+ Label:
+ id: host
Button:
size_hint_y: None
height: '48dp'
- text: 'close'
- on_release: network.dismiss()
+ text: _('Close')
+ on_release: nd.dismiss()