Rename btn to composer_dropwdown
This commit is contained in:
parent
929d9af945
commit
3b23977cbf
|
@ -44,7 +44,7 @@ class HelperAddressBook(object):
|
||||||
if from_addr:
|
if from_addr:
|
||||||
window_obj.id_create.children[1].ids.txt_input.text = 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.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.subject.text = ''
|
||||||
window_obj.id_create.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'
|
||||||
|
|
|
@ -74,8 +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.composer_dropdown.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 = addresses
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def add_validation(instance):
|
def add_validation(instance):
|
||||||
|
|
|
@ -193,7 +193,7 @@ class MailDetail(Screen): # pylint: disable=too-many-instance-attributes
|
||||||
message_time = '\n\n --------------On '
|
message_time = '\n\n --------------On '
|
||||||
composer_obj = self.parent.screens[1].children[1].ids
|
composer_obj = self.parent.screens[1].children[1].ids
|
||||||
composer_obj.ti.text = data[0][0]
|
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]
|
composer_obj.txt_input.text = data[0][1]
|
||||||
split_subject = data[0][2].split('Re:', 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])
|
composer_obj.subject.text = 'Re: ' + (split_subject[1] if len(split_subject) > 1 else split_subject[0])
|
||||||
|
|
|
@ -48,8 +48,8 @@ class Create(Screen):
|
||||||
|
|
||||||
def check_scroll_y(self, instance, somethingelse): # pylint: disable=unused-argument
|
def check_scroll_y(self, instance, somethingelse): # pylint: disable=unused-argument
|
||||||
"""show data on scroll down"""
|
"""show data on scroll down"""
|
||||||
if self.children[1].ids.btn.is_open:
|
if self.children[1].ids.composer_dropdown.is_open:
|
||||||
self.children[1].ids.btn.is_open = False
|
self.children[1].ids.composer_dropdown.is_open = False
|
||||||
|
|
||||||
|
|
||||||
class RV(RecycleView):
|
class RV(RecycleView):
|
||||||
|
@ -91,7 +91,7 @@ class DropDownWidget(BoxLayout):
|
||||||
def reset_composer(self):
|
def reset_composer(self):
|
||||||
"""Method will reset composer"""
|
"""Method will reset composer"""
|
||||||
self.ids.ti.text = ""
|
self.ids.ti.text = ""
|
||||||
self.ids.btn.text = "Select"
|
self.ids.composer_dropdown.text = "Select"
|
||||||
self.ids.txt_input.text = ""
|
self.ids.txt_input.text = ""
|
||||||
self.ids.subject.text = ""
|
self.ids.subject.text = ""
|
||||||
self.ids.body.text = ""
|
self.ids.body.text = ""
|
||||||
|
@ -99,7 +99,7 @@ class DropDownWidget(BoxLayout):
|
||||||
|
|
||||||
def auto_fill_fromaddr(self):
|
def auto_fill_fromaddr(self):
|
||||||
"""Fill the text automatically From Address"""
|
"""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
|
self.ids.ti.focus = True
|
||||||
|
|
||||||
def is_camara_attached(self):
|
def is_camara_attached(self):
|
||||||
|
|
|
@ -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.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
|
self.kivy_running_app.identity_list = addresses
|
||||||
|
|
||||||
def toggleAction(self, instance):
|
def toggleAction(self, instance):
|
||||||
|
|
|
@ -153,7 +153,7 @@ class MyaddDetailPopup(BoxLayout):
|
||||||
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.id_create.children[1].ids.ti.text = self.address
|
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.txt_input.text = ''
|
||||||
window_obj.id_create.children[1].ids.subject.text = ''
|
window_obj.id_create.children[1].ids.subject.text = ''
|
||||||
window_obj.id_create.children[1].ids.body.text = ''
|
window_obj.id_create.children[1].ids.body.text = ''
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
size_hint_y: None
|
size_hint_y: None
|
||||||
height: dp(40)
|
height: dp(40)
|
||||||
IdentitySpinner:
|
IdentitySpinner:
|
||||||
id: btn
|
id: composer_dropdown
|
||||||
background_color: app.theme_cls.primary_dark
|
background_color: app.theme_cls.primary_dark
|
||||||
values: app.identity_list
|
values: app.identity_list
|
||||||
on_text: root.auto_fill_fromaddr() if self.text != 'Select' else ''
|
on_text: root.auto_fill_fromaddr() if self.text != 'Select' else ''
|
||||||
|
|
Reference in New Issue
Block a user