Update Addressbook helper

This commit is contained in:
shekhar-cis 2022-06-15 19:35:46 +05:30
parent 133a08198b
commit d5f00ce6a9
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -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: