Update Addressbook helper
This commit is contained in:
parent
133a08198b
commit
d5f00ce6a9
|
@ -3,12 +3,10 @@
|
||||||
Addressbook widgets are here.
|
Addressbook widgets are here.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from kivy.app import App
|
||||||
from kivymd.uix.button import MDRaisedButton
|
from kivymd.uix.button import MDRaisedButton
|
||||||
from kivymd.uix.dialog import MDDialog
|
from kivymd.uix.dialog import MDDialog
|
||||||
|
|
||||||
import state
|
|
||||||
|
|
||||||
|
|
||||||
class HelperAddressBook(object):
|
class HelperAddressBook(object):
|
||||||
"""Widget used in Addressbook are here"""
|
"""Widget used in Addressbook are here"""
|
||||||
|
@ -40,7 +38,7 @@ class HelperAddressBook(object):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def compose_message(from_addr=None, to_addr=None):
|
def compose_message(from_addr=None, to_addr=None):
|
||||||
"""This UI independent method for message sending to reciever"""
|
"""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:
|
if to_addr:
|
||||||
window_obj.sc3.children[1].ids.txt_input.text = to_addr
|
window_obj.sc3.children[1].ids.txt_input.text = to_addr
|
||||||
if from_addr:
|
if from_addr:
|
||||||
|
|
Reference in New Issue
Block a user