From d5f00ce6a9ca1c51e243fd7e57d31413f4363fd1 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Wed, 15 Jun 2022 19:35:46 +0530 Subject: [PATCH] Update Addressbook helper --- src/bitmessagekivy/baseclass/addressbook_widgets.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bitmessagekivy/baseclass/addressbook_widgets.py b/src/bitmessagekivy/baseclass/addressbook_widgets.py index a1f5c5f4..bd844d6d 100644 --- a/src/bitmessagekivy/baseclass/addressbook_widgets.py +++ b/src/bitmessagekivy/baseclass/addressbook_widgets.py @@ -3,12 +3,10 @@ Addressbook widgets are here. """ - +from kivy.app import App from kivymd.uix.button import MDRaisedButton from kivymd.uix.dialog import MDDialog -import state - class HelperAddressBook(object): """Widget used in Addressbook are here""" @@ -40,7 +38,7 @@ class HelperAddressBook(object): @staticmethod def compose_message(from_addr=None, to_addr=None): """This UI independent method for message sending to reciever""" - window_obj = state.kivyapp.root.ids + window_obj = App.get_runnint_app().root.ids if to_addr: window_obj.sc3.children[1].ids.txt_input.text = to_addr if from_addr: