From 967bd1a4b4b0e88bad1da4a69ed35fcc7ac9a7f8 Mon Sep 17 00:00:00 2001 From: cis Date: Mon, 7 Jun 2021 16:28:21 +0530 Subject: [PATCH] fixed too many iteration issue --- src/bitmessagekivy/kv/network.kv | 90 ++++++++++++++++---------------- src/bitmessagekivy/mpybit.py | 1 - 2 files changed, 45 insertions(+), 46 deletions(-) diff --git a/src/bitmessagekivy/kv/network.kv b/src/bitmessagekivy/kv/network.kv index f38c8b96..b26203c6 100644 --- a/src/bitmessagekivy/kv/network.kv +++ b/src/bitmessagekivy/kv/network.kv @@ -19,18 +19,18 @@ size_hint_y: None height: dp(58) MDRaisedButton: - size_hint: .6, 0 - height: dp(40) - # text: root.text_variable_1 + # size_hint: .6, 0 + # height: dp(40) + text: app.tr._(root.text_variable_1) elevation_normal: 2 opposite_colors: True pos_hint: {'center_x': .5} - MDLabel: - font_style: 'H6' - text: app.tr._(root.text_variable_1) - font_size: '13sp' - color: (1,1,1,1) - halign: 'center' + # MDLabel: + # font_style: 'H6' + # text: app.tr._(root.text_variable_1) + # font_size: '13sp' + # color: (1,1,1,1) + # halign: 'center' Tab: text: app.tr._('Processes') ScrollView: @@ -46,18 +46,18 @@ size_hint_y: None height: dp(58) MDRaisedButton: - size_hint: .6, 0 - height: dp(40) - # text: root.text_variable_2 + # size_hint: .6, 0 + # height: dp(40) + text: app.tr._(root.text_variable_2) elevation_normal: 2 opposite_colors: True pos_hint: {'center_x': .5} - MDLabel: - font_style: 'H6' - text: app.tr._(root.text_variable_2) - font_size: '13sp' - color: (1,1,1,1) - halign: 'center' + # MDLabel: + # font_style: 'H6' + # text: app.tr._(root.text_variable_2) + # font_size: '13sp' + # color: (1,1,1,1) + # halign: 'center' OneLineListItem: text: app.tr._("Brodcast") BoxLayout: @@ -65,18 +65,18 @@ size_hint_y: None height: dp(58) MDRaisedButton: - size_hint: .6, 0 - height: dp(40) - # text: root.text_variable_3 + # size_hint: .6, 0 + # height: dp(40) + text: app.tr._(root.text_variable_3) elevation_normal: 2 opposite_colors: True pos_hint: {'center_x': .5} - MDLabel: - font_style: 'H6' - text: app.tr._(root.text_variable_3) - font_size: '13sp' - color: (1,1,1,1) - halign: 'center' + # MDLabel: + # font_style: 'H6' + # text: app.tr._(root.text_variable_3) + # font_size: '13sp' + # color: (1,1,1,1) + # halign: 'center' OneLineListItem: text: app.tr._("publickeys") BoxLayout: @@ -84,18 +84,18 @@ size_hint_y: None height: dp(58) MDRaisedButton: - size_hint: .6, 0 - height: dp(40) - # text: root.text_variable_4 + # size_hint: .6, 0 + # height: dp(40) + text: app.tr._(root.text_variable_4) elevation_normal: 2 opposite_colors: True pos_hint: {'center_x': .5} - MDLabel: - font_style: 'H6' - text: app.tr._(root.text_variable_4) - font_size: '13sp' - color: (1,1,1,1) - halign: 'center' + # MDLabel: + # font_style: 'H6' + # text: app.tr._(root.text_variable_4) + # font_size: '13sp' + # color: (1,1,1,1) + # halign: 'center' OneLineListItem: text: app.tr._("objects") BoxLayout: @@ -103,15 +103,15 @@ size_hint_y: None height: dp(58) MDRaisedButton: - size_hint: .6, 0 - height: dp(40) - # text: root.text_variable_5 + # size_hint: .6, 0 + #height: dp(40) + text: app.tr._(root.text_variable_5) elevation_normal: 2 opposite_colors: True pos_hint: {'center_x': .5} - MDLabel: - font_style: 'H6' - text: app.tr._(root.text_variable_5) - font_size: '13sp' - color: (1,1,1,1) - halign: 'center' + # MDLabel: + # font_style: 'H6' + # text: app.tr._(root.text_variable_5) + # font_size: '13sp' + # color: (1,1,1,1) + # halign: 'center' diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index 001b14c0..5b23291e 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/src/bitmessagekivy/mpybit.py @@ -229,7 +229,6 @@ class NavigateApp(MDApp): def build(self): """Method builds the widget""" - print('data_screens: ', data_screens) for kv in data_screens: Builder.load_file( os.path.join(