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)
Window.softinput_mode = "below_target"
widget_1 = DropDownWidget()
widget_1.ids.txt_input.word_list = [
addr[1] for addr in sqlQuery(
"SELECT label, address from addressbook")]
widget_1.ids.txt_input.word_list = []
widget_1.ids.txt_input.starting_no = 2
self.add_widget(widget_1)
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):
"""This method is used to retrieving data from sent table"""
self.queryreturn = kivy_helper_search.search_sql(
xAddress,
self.account,
'sent',
where,
what,
False,
start_indx,
end_indx)
# self.queryreturn = kivy_helper_search.search_sql(
# xAddress,
# self.account,
# 'sent',
# where,
# what,
# False,
# start_indx,
# end_indx)
pass
def set_mdlist(self, data, set_index=0):
"""This method is used to create the mdList"""

View File

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

View File

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