enabelled sent, trash, create,settings code from main.kv

This commit is contained in:
kuldeep.k@cisinlabs.com 2021-12-28 21:31:00 +05:30
parent 557fa321c0
commit f98ba8b9a1
No known key found for this signature in database
GPG Key ID: AF4FB299BF7C7C2A
4 changed files with 31 additions and 32 deletions

View File

@ -44,9 +44,7 @@ class Create(Screen):
super(Create, self).__init__(**kwargs) super(Create, self).__init__(**kwargs)
Window.softinput_mode = "below_target" Window.softinput_mode = "below_target"
widget_1 = DropDownWidget() widget_1 = DropDownWidget()
widget_1.ids.txt_input.word_list = [ widget_1.ids.txt_input.word_list = []
addr[1] for addr in sqlQuery(
"SELECT label, address from addressbook")]
widget_1.ids.txt_input.starting_no = 2 widget_1.ids.txt_input.starting_no = 2
self.add_widget(widget_1) self.add_widget(widget_1)
self.children[0].ids.id_scroll.bind(scroll_y=self.check_scroll_y) self.children[0].ids.id_scroll.bind(scroll_y=self.check_scroll_y)

View File

@ -77,15 +77,16 @@ class Sent(Screen):
def sentDataQuery(self, xAddress, where, what, start_indx=0, end_indx=20): def sentDataQuery(self, xAddress, where, what, start_indx=0, end_indx=20):
"""This method is used to retrieving data from sent table""" """This method is used to retrieving data from sent table"""
self.queryreturn = kivy_helper_search.search_sql( # self.queryreturn = kivy_helper_search.search_sql(
xAddress, # xAddress,
self.account, # self.account,
'sent', # 'sent',
where, # where,
what, # what,
False, # False,
start_indx, # start_indx,
end_indx) # end_indx)
pass
def set_mdlist(self, data, set_index=0): def set_mdlist(self, data, set_index=0):
"""This method is used to create the mdList""" """This method is used to create the mdList"""

View File

@ -40,7 +40,7 @@ class Trash(Screen):
if state.kivyapp.variable_1: if state.kivyapp.variable_1:
state.association = state.kivyapp.variable_1[0] state.association = state.kivyapp.variable_1[0]
self.ids.tag_label.text = '' self.ids.tag_label.text = ''
self.trashDataQuery(0, 20) # self.trashDataQuery(0, 20)
if len(self.trash_messages): if len(self.trash_messages):
self.ids.ml.clear_widgets() self.ids.ml.clear_widgets()
self.ids.tag_label.text = 'Trash' self.ids.tag_label.text = 'Trash'
@ -118,7 +118,7 @@ class Trash(Screen):
def update_trash_screen_on_scroll(self, total_trash_msg): def update_trash_screen_on_scroll(self, total_trash_msg):
"""Load more data on scroll down""" """Load more data on scroll down"""
self.trashDataQuery(total_trash_msg, 5) # self.trashDataQuery(total_trash_msg, 5)
self.set_mdList() self.set_mdList()
def delete_permanently(self, data_index, folder, instance, *args): def delete_permanently(self, data_index, folder, instance, *args):

View File

@ -246,24 +246,24 @@ MDNavigationLayout:
id:sc1 id:sc1
# # Page: # # Page:
# # id:sc2 # # id:sc2
# Create: Create:
# id:sc3 id:sc3
# Sent: Sent:
# id:sc4 id:sc4
# Trash: Trash:
# id:sc5 id:sc5
# Login: Login:
# id:sc6 id:sc6
# Random: Random:
# id:sc7 id:sc7
# # Spam: # Spam:
# # id:sc8 # id:sc8
# Setting: Setting:
# id:sc9 id:sc9
# MyAddress: MyAddress:
# id:sc10 id:sc10
# AddressBook: AddressBook:
# id:sc11 id:sc11
# Payment: # Payment:
# id:sc12 # id:sc12
# NetworkStat: # NetworkStat: