Update id sc3 to ic_create and sc4 to id_sent

This commit is contained in:
osamacis 2022-11-16 18:17:05 +05:30
parent 6b40568d33
commit 67b6fd4178
No known key found for this signature in database
GPG Key ID: 15F978BEFADAB9E1
5 changed files with 16 additions and 14 deletions

View File

@ -40,11 +40,11 @@ class HelperAddressBook(object):
"""This UI independent method for message sending to reciever""" """This UI independent method for message sending to reciever"""
window_obj = App.get_runnint_app().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.id_create.children[1].ids.txt_input.text = to_addr
if from_addr: if from_addr:
window_obj.sc3.children[1].ids.txt_input.text = from_addr window_obj.id_create.children[1].ids.txt_input.text = from_addr
window_obj.sc3.children[1].ids.ti.text = '' window_obj.id_create.children[1].ids.ti.text = ''
window_obj.sc3.children[1].ids.btn.text = 'Select' window_obj.id_create.children[1].ids.btn.text = 'Select'
window_obj.sc3.children[1].ids.subject.text = '' window_obj.id_create.children[1].ids.subject.text = ''
window_obj.sc3.children[1].ids.body.text = '' window_obj.id_create.children[1].ids.body.text = ''
window_obj.scr_mngr.current = 'create' window_obj.scr_mngr.current = 'create'

View File

@ -74,6 +74,8 @@ class Random(Screen):
if config.getboolean(str(addr), 'enabled')] 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 = []
self.manager.parent.ids.content_drawer.ids.identity_dropdown.values = addresses 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 @staticmethod
def add_validation(instance): def add_validation(instance):

View File

@ -217,14 +217,14 @@ class MailDetail(Screen): # pylint: disable=too-many-instance-attributes
self.kivy_state.in_composer = True self.kivy_state.in_composer = True
data = retrieve_message_details(self.kivy_state.mail_id) data = retrieve_message_details(self.kivy_state.mail_id)
self.get_message_details_to_reply(data) 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' self.parent.current = 'create'
App.get_running_app().set_navbar_for_composer() App.get_running_app().set_navbar_for_composer()
def get_message_details_for_draft_reply(self, data): def get_message_details_for_draft_reply(self, data):
"""Getting and setting message details fill into fields when draft reply""" """Getting and setting message details fill into fields when draft reply"""
composer_ids = ( 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.ti.text = data[0][1]
composer_ids.btn.text = data[0][1] composer_ids.btn.text = data[0][1]
composer_ids.txt_input.text = data[0][0] composer_ids.txt_input.text = data[0][0]

View File

@ -220,7 +220,7 @@ class MyAddress(Screen, HelperMyAddress):
addresses = [addr for addr in config.addresses() addresses = [addr for addr in config.addresses()
if config.getboolean(str(addr), 'enabled')] if config.getboolean(str(addr), 'enabled')]
self.parent.parent.ids.content_drawer.ids.identity_dropdown.values = addresses 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 self.kivy_running_app.identity_list = addresses
def toggleAction(self, instance): def toggleAction(self, instance):

View File

@ -152,11 +152,11 @@ class MyaddDetailPopup(BoxLayout):
"""Method used to fill from address of composer autofield""" """Method used to fill from address of composer autofield"""
App.get_running_app().set_navbar_for_composer() App.get_running_app().set_navbar_for_composer()
window_obj = App.get_running_app().root.ids window_obj = App.get_running_app().root.ids
window_obj.sc3.children[1].ids.ti.text = self.address window_obj.id_create.children[1].ids.ti.text = self.address
window_obj.sc3.children[1].ids.btn.text = self.address window_obj.id_create.children[1].ids.btn.text = self.address
window_obj.sc3.children[1].ids.txt_input.text = '' window_obj.id_create.children[1].ids.txt_input.text = ''
window_obj.sc3.children[1].ids.subject.text = '' window_obj.id_create.children[1].ids.subject.text = ''
window_obj.sc3.children[1].ids.body.text = '' window_obj.id_create.children[1].ids.body.text = ''
window_obj.scr_mngr.current = 'create' window_obj.scr_mngr.current = 'create'
self.parent.parent.parent.dismiss() self.parent.parent.parent.dismiss()