Update id sc3 to ic_create and sc4 to id_sent
This commit is contained in:
parent
6b40568d33
commit
67b6fd4178
|
@ -40,11 +40,11 @@ class HelperAddressBook(object):
|
|||
"""This UI independent method for message sending to reciever"""
|
||||
window_obj = App.get_runnint_app().root.ids
|
||||
if to_addr:
|
||||
window_obj.sc3.children[1].ids.txt_input.text = to_addr
|
||||
window_obj.id_create.children[1].ids.txt_input.text = to_addr
|
||||
if from_addr:
|
||||
window_obj.sc3.children[1].ids.txt_input.text = from_addr
|
||||
window_obj.sc3.children[1].ids.ti.text = ''
|
||||
window_obj.sc3.children[1].ids.btn.text = 'Select'
|
||||
window_obj.sc3.children[1].ids.subject.text = ''
|
||||
window_obj.sc3.children[1].ids.body.text = ''
|
||||
window_obj.id_create.children[1].ids.txt_input.text = from_addr
|
||||
window_obj.id_create.children[1].ids.ti.text = ''
|
||||
window_obj.id_create.children[1].ids.btn.text = 'Select'
|
||||
window_obj.id_create.children[1].ids.subject.text = ''
|
||||
window_obj.id_create.children[1].ids.body.text = ''
|
||||
window_obj.scr_mngr.current = 'create'
|
||||
|
|
|
@ -74,6 +74,8 @@ class Random(Screen):
|
|||
if config.getboolean(str(addr), 'enabled')]
|
||||
self.manager.parent.ids.content_drawer.ids.identity_dropdown.values = []
|
||||
self.manager.parent.ids.content_drawer.ids.identity_dropdown.values = addresses
|
||||
self.manager.parent.ids.id_create.children[1].ids.btn.values = []
|
||||
self.manager.parent.ids.id_create.children[1].ids.btn.values = addresses
|
||||
|
||||
@staticmethod
|
||||
def add_validation(instance):
|
||||
|
|
|
@ -217,14 +217,14 @@ class MailDetail(Screen): # pylint: disable=too-many-instance-attributes
|
|||
self.kivy_state.in_composer = True
|
||||
data = retrieve_message_details(self.kivy_state.mail_id)
|
||||
self.get_message_details_to_reply(data)
|
||||
App.get_running_app().root.ids.sc3.children[1].ids.rv.data = ''
|
||||
App.get_running_app().root.ids.id_create.children[1].ids.rv.data = ''
|
||||
self.parent.current = 'create'
|
||||
App.get_running_app().set_navbar_for_composer()
|
||||
|
||||
def get_message_details_for_draft_reply(self, data):
|
||||
"""Getting and setting message details fill into fields when draft reply"""
|
||||
composer_ids = (
|
||||
self.parent.parent.ids.sc3.children[1].ids)
|
||||
self.parent.parent.ids.id_create.children[1].ids)
|
||||
composer_ids.ti.text = data[0][1]
|
||||
composer_ids.btn.text = data[0][1]
|
||||
composer_ids.txt_input.text = data[0][0]
|
||||
|
|
|
@ -220,7 +220,7 @@ class MyAddress(Screen, HelperMyAddress):
|
|||
addresses = [addr for addr in config.addresses()
|
||||
if config.getboolean(str(addr), 'enabled')]
|
||||
self.parent.parent.ids.content_drawer.ids.identity_dropdown.values = addresses
|
||||
# self.parent.parent.ids.sc3.children[1].ids.btn.values = addresses
|
||||
self.parent.parent.ids.id_create.children[1].ids.btn.values = addresses
|
||||
self.kivy_running_app.identity_list = addresses
|
||||
|
||||
def toggleAction(self, instance):
|
||||
|
|
|
@ -152,11 +152,11 @@ class MyaddDetailPopup(BoxLayout):
|
|||
"""Method used to fill from address of composer autofield"""
|
||||
App.get_running_app().set_navbar_for_composer()
|
||||
window_obj = App.get_running_app().root.ids
|
||||
window_obj.sc3.children[1].ids.ti.text = self.address
|
||||
window_obj.sc3.children[1].ids.btn.text = self.address
|
||||
window_obj.sc3.children[1].ids.txt_input.text = ''
|
||||
window_obj.sc3.children[1].ids.subject.text = ''
|
||||
window_obj.sc3.children[1].ids.body.text = ''
|
||||
window_obj.id_create.children[1].ids.ti.text = self.address
|
||||
window_obj.id_create.children[1].ids.btn.text = self.address
|
||||
window_obj.id_create.children[1].ids.txt_input.text = ''
|
||||
window_obj.id_create.children[1].ids.subject.text = ''
|
||||
window_obj.id_create.children[1].ids.body.text = ''
|
||||
window_obj.scr_mngr.current = 'create'
|
||||
self.parent.parent.parent.dismiss()
|
||||
|
||||
|
|
Reference in New Issue
Block a user