fixes after pull

This commit is contained in:
lakshyacis 2019-11-30 19:23:41 +05:30
parent e0536e7497
commit 73f649b9a0
No known key found for this signature in database
GPG Key ID: D2C539C8EC63E9EB

View File

@ -834,7 +834,9 @@ class Random(Screen):
for obj in BMConfigParser().addresses()] for obj in BMConfigParser().addresses()]
if entered_label in lables: if entered_label in lables:
self.ids.label.error = True self.ids.label.error = True
self.ids.label.helper_text = 'Label name is already exist you can try this Ex. ( {0}_1, {0}_2 )'.format(entered_label) self.ids.label.helper_text = 'Label name is already exist you'\
' can try this Ex. ( {0}_1, {0}_2 )'.format(
entered_label)
elif entered_label: elif entered_label:
self.ids.label.error = False self.ids.label.error = False
else: else:
@ -842,6 +844,7 @@ class Random(Screen):
self.ids.label.helper_text = 'This field is required' self.ids.label.helper_text = 'This field is required'
def reset_address_label(self): def reset_address_label(self):
"""Resetting address labels"""
self.ids.label.text = '' self.ids.label.text = ''
@ -1162,7 +1165,7 @@ class Trash(Screen):
def delete_confirmation(self): def delete_confirmation(self):
"""Show confirmation delete popup""" """Show confirmation delete popup"""
delete_msg_dialog = MDDialog( delete_msg_dialog = MDDialog(
text='Are you sure you want to delete this' / text='Are you sure you want to delete this'
' message permanently from trash?', ' message permanently from trash?',
title='', title='',
size_hint=(.8, .25), size_hint=(.8, .25),