From d6356b596c9eccea73eaae4bef49aa49602001d9 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Mon, 29 Aug 2022 20:59:14 +0530 Subject: [PATCH] Update id names in main.kv --- src/bitmessagekivy/baseclass/addressbook.py | 4 ++-- src/bitmessagekivy/kv/msg_composer.kv | 2 +- src/bitmessagekivy/kv/popup.kv | 2 +- src/bitmessagekivy/main.kv | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/bitmessagekivy/baseclass/addressbook.py b/src/bitmessagekivy/baseclass/addressbook.py index 26681383..31b7499a 100644 --- a/src/bitmessagekivy/baseclass/addressbook.py +++ b/src/bitmessagekivy/baseclass/addressbook.py @@ -159,8 +159,8 @@ class AddressBook(Screen, HelperAddressBook): UPDATE addressbook SET label = ? WHERE address = ?""", label, self.addbook_popup.content_cls.address) - App.get_running_app().root.ids.sc11.ids.ml.clear_widgets() - App.get_running_app().root.ids.sc11.loadAddresslist(None, 'All', '') + App.get_running_app().root.ids.id_addressbook.ids.ml.clear_widgets() + App.get_running_app().root.ids.id_addressbook.loadAddresslist(None, 'All', '') self.addbook_popup.dismiss() toast('Saved') diff --git a/src/bitmessagekivy/kv/msg_composer.kv b/src/bitmessagekivy/kv/msg_composer.kv index 75c9be30..2825b415 100644 --- a/src/bitmessagekivy/kv/msg_composer.kv +++ b/src/bitmessagekivy/kv/msg_composer.kv @@ -79,7 +79,7 @@ if root.is_camara_attached(): app.set_screen('scanscreen') else: root.camera_alert() on_press: - app.root.ids.sc23.get_screen('composer') + app.root.ids.is_scanscreen.get_screen('composer') MyMDTextField: id: subject diff --git a/src/bitmessagekivy/kv/popup.kv b/src/bitmessagekivy/kv/popup.kv index 0a000440..dc373b39 100644 --- a/src/bitmessagekivy/kv/popup.kv +++ b/src/bitmessagekivy/kv/popup.kv @@ -154,7 +154,7 @@ size_hint: 1.5, None height: dp(40) on_press: app.set_screen('showqrcode') - on_press: app.root.ids.sc15.qrdisplay(root, root.address) + on_press: app.root.ids.id_showqrcode.qrdisplay(root, root.address) MDLabel: font_style: 'H6' text: app.tr._('Show QR code') diff --git a/src/bitmessagekivy/main.kv b/src/bitmessagekivy/main.kv index 18bdf48a..1a27099b 100644 --- a/src/bitmessagekivy/main.kv +++ b/src/bitmessagekivy/main.kv @@ -233,21 +233,21 @@ MDNavigationLayout: MyAddress: id:id_myaddress AddressBook: - id:sc11 + id:id_addressbook Payment: - id:sc12 + id:id_payment NetworkStat: - id:sc13 + id:id_network MailDetail: id:sc14 ShowQRCode: - id:sc15 + id:id_showqrcode Draft: id:sc16 Allmails: id:sc17 ScanScreen: - id:sc23 + id:is_scanscreen MDNavigationDrawer: id: nav_drawer