Rename btn to composer_dropwdown

This commit is contained in:
shekhar-cis 2022-11-21 16:31:08 +05:30
parent 929d9af945
commit 3b23977cbf
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7
7 changed files with 11 additions and 11 deletions

View File

@ -44,7 +44,7 @@ class HelperAddressBook(object):
if from_addr:
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.composer_dropdown.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'

View File

@ -74,8 +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
self.manager.parent.ids.id_create.children[1].ids.composer_dropdown.values = []
self.manager.parent.ids.id_create.children[1].ids.composer_dropdown.values = addresses
@staticmethod
def add_validation(instance):

View File

@ -193,7 +193,7 @@ class MailDetail(Screen): # pylint: disable=too-many-instance-attributes
message_time = '\n\n --------------On '
composer_obj = self.parent.screens[1].children[1].ids
composer_obj.ti.text = data[0][0]
composer_obj.btn.text = data[0][0]
composer_obj.composer_dropdown.text = data[0][0]
composer_obj.txt_input.text = data[0][1]
split_subject = data[0][2].split('Re:', 1)
composer_obj.subject.text = 'Re: ' + (split_subject[1] if len(split_subject) > 1 else split_subject[0])

View File

@ -48,8 +48,8 @@ class Create(Screen):
def check_scroll_y(self, instance, somethingelse): # pylint: disable=unused-argument
"""show data on scroll down"""
if self.children[1].ids.btn.is_open:
self.children[1].ids.btn.is_open = False
if self.children[1].ids.composer_dropdown.is_open:
self.children[1].ids.composer_dropdown.is_open = False
class RV(RecycleView):
@ -91,7 +91,7 @@ class DropDownWidget(BoxLayout):
def reset_composer(self):
"""Method will reset composer"""
self.ids.ti.text = ""
self.ids.btn.text = "Select"
self.ids.composer_dropdown.text = "Select"
self.ids.txt_input.text = ""
self.ids.subject.text = ""
self.ids.body.text = ""
@ -99,7 +99,7 @@ class DropDownWidget(BoxLayout):
def auto_fill_fromaddr(self):
"""Fill the text automatically From Address"""
self.ids.ti.text = self.ids.btn.text
self.ids.ti.text = self.ids.composer_dropdown.text
self.ids.ti.focus = True
def is_camara_attached(self):

View File

@ -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.id_create.children[1].ids.btn.values = addresses
self.parent.parent.ids.id_create.children[1].ids.composer_dropdown.values = addresses
self.kivy_running_app.identity_list = addresses
def toggleAction(self, instance):

View File

@ -153,7 +153,7 @@ class MyaddDetailPopup(BoxLayout):
App.get_running_app().set_navbar_for_composer()
window_obj = App.get_running_app().root.ids
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.composer_dropdown.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 = ''

View File

@ -35,7 +35,7 @@
size_hint_y: None
height: dp(40)
IdentitySpinner:
id: btn
id: composer_dropdown
background_color: app.theme_cls.primary_dark
values: app.identity_list
on_text: root.auto_fill_fromaddr() if self.text != 'Select' else ''