Comment unused method calling in main.kv

This commit is contained in:
shekhar-cis 2022-09-07 21:06:09 +05:30
parent d079ad26d9
commit 2d376976f2
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7
3 changed files with 21 additions and 21 deletions

View File

@ -35,7 +35,7 @@
BoxLayout: BoxLayout:
size_hint_y: None size_hint_y: None
height: dp(40) height: dp(40)
CustomSpinner: IdentitySpinner:
id: btn id: btn
background_color: app.theme_cls.primary_dark background_color: app.theme_cls.primary_dark
values: app.variable_1 values: app.variable_1

View File

@ -81,8 +81,8 @@
on_release: app.file_manager_open() on_release: app.file_manager_open()
theme_text_color: "Custom" theme_text_color: "Custom"
text_color: app.theme_cls.primary_color text_color: app.theme_cls.primary_color
opacity: 1 if app.current_address_label() else 0 # opacity: 1 if app.current_address_label() else 0
disabled: False if app.current_address_label() else True # disabled: False if app.current_address_label() else True
BoxLayout: BoxLayout:
id: top_box id: top_box
@ -113,11 +113,11 @@
pos_hint:{"x":0,"y":0} pos_hint:{"x":0,"y":0}
option_cls: Factory.get("MySpinnerOption") option_cls: Factory.get("MySpinnerOption")
font_size: '12.5sp' font_size: '12.5sp'
text: app.getDefaultAccData(self) # text: app.getDefaultAccData(self)
color: color_font color: color_font
background_normal: '' background_normal: ''
background_color: app.theme_cls.primary_color background_color: app.theme_cls.primary_color
on_text:app.getCurrentAccountData(self.text) # on_text:app.getCurrentAccountData(self.text)
ArrowImg: ArrowImg:
NavigationItem: NavigationItem:
id: inbox_cnt id: inbox_cnt
@ -203,9 +203,9 @@ MDNavigationLayout:
MDTopAppBar: MDTopAppBar:
id: toolbar id: toolbar
title: app.current_address_label() # title: app.current_address_label()
opacity: 1 if app.addressexist() else 0 # opacity: 1 if app.addressexist() else 0
disabled: False if app.addressexist() else True # disabled: False if app.addressexist() else True
pos_hint: {"top": 1} pos_hint: {"top": 1}
md_bg_color: app.theme_cls.primary_color md_bg_color: app.theme_cls.primary_color
elevation: 10 elevation: 10
@ -232,8 +232,8 @@ MDNavigationLayout:
# id:sc9 # id:sc9
# MyAddress: # MyAddress:
# id:id_myaddress # id:id_myaddress
AddressBook: # AddressBook:
id:id_addressbook # id:id_addressbook
Payment: Payment:
id:id_payment id:id_payment
# NetworkStat: # NetworkStat:
@ -273,7 +273,7 @@ MDNavigationLayout:
MDTextField: MDTextField:
id: search_field id: search_field
hint_text: 'Search' hint_text: 'Search'
on_text: app.searchQuery(self) # on_text: app.searchQuery(self)
canvas.before: canvas.before:
Color: Color:
rgba: (0,0,0,1) rgba: (0,0,0,1)
@ -300,7 +300,7 @@ MDNavigationLayout:
elevation_normal: 8 elevation_normal: 8
md_bg_color: [0.941, 0, 0,1] md_bg_color: [0.941, 0, 0,1]
on_press: app.root.ids.scr_mngr.current = 'create' on_press: app.root.ids.scr_mngr.current = 'create'
on_press: app.clear_composer() # on_press: app.clear_composer()
<SwipeToDeleteItem>: <SwipeToDeleteItem>:

View File

@ -258,9 +258,9 @@ class NavigateApp(MDApp):
self.kivy_state_obj.association, android_path) self.kivy_state_obj.association, android_path)
) )
else: else:
if not os.path.exists(self.image_dir.image_dir + '/default_identicon/'): if not os.path.exists(self.image_dir + '/default_identicon/'):
os.makedirs(self.image_dir.image_dir + '/default_identicon/') os.makedirs(self.image_dir + '/default_identicon/')
newImg.save(self.image_dir.image_dir + '/default_identicon/{0}.png'.format( newImg.save(self.image_dir + '/default_identicon/{0}.png'.format(
self.kivy_state_obj.association) self.kivy_state_obj.association)
) )
self.load_selected_Image(self.kivy_state_obj.association) self.load_selected_Image(self.kivy_state_obj.association)
@ -277,7 +277,7 @@ class NavigateApp(MDApp):
def load_selected_Image(self, curerentAddr): def load_selected_Image(self, curerentAddr):
"""This method load the selected image on screen""" """This method load the selected image on screen"""
top_box_obj = self.root.ids.content_drawer.ids.top_box.children[0] top_box_obj = self.root.ids.content_drawer.ids.top_box.children[0]
top_box_obj.source = self.image_dir.image_dir + '/default_identicon/{0}.png'.format(curerentAddr) top_box_obj.source = self.image_dir + '/default_identicon/{0}.png'.format(curerentAddr)
self.root.ids.content_drawer.ids.reset_image.opacity = 1 self.root.ids.content_drawer.ids.reset_image.opacity = 1
self.root.ids.content_drawer.ids.reset_image.disabled = False self.root.ids.content_drawer.ids.reset_image.disabled = False
top_box_obj.reload() top_box_obj.reload()
@ -285,7 +285,7 @@ class NavigateApp(MDApp):
def rest_default_avatar_img(self): def rest_default_avatar_img(self):
"""set default avatar generated image""" """set default avatar generated image"""
self.set_identicon(self.kivy_state_obj.association) self.set_identicon(self.kivy_state_obj.association)
img_path = self.image_dir.image_dir + '/default_identicon/{}.png'.format( img_path = self.image_dir + '/default_identicon/{}.png'.format(
self.kivy_state_obj.association self.kivy_state_obj.association
) )
try: try:
@ -303,14 +303,14 @@ class NavigateApp(MDApp):
first_addr = self.identity_list[0] first_addr = self.identity_list[0]
if config.getboolean(str(first_addr), 'enabled'): if config.getboolean(str(first_addr), 'enabled'):
if os.path.exists( if os.path.exists(
self.image_dir.imageDir + '/default_identicon/{}.png'.format(first_addr)): self.image_dir + '/default_identicon/{}.png'.format(first_addr)
return self.image_dir.imageDir + '/default_identicon/{}.png'.format( ):
first_addr) return self.image_dir + '/default_identicon/{}.png'.format(first_addr)
else: else:
img = identiconGeneration.generate(first_addr) img = identiconGeneration.generate(first_addr)
instance.texture = img.texture instance.texture = img.texture
return return
return self.image_dir.imageDir + '/drawer_logo1.png' return self.image_dir + '/drawer_logo1.png'
def reset_login_screen(self): def reset_login_screen(self):
"""This method is used for clearing the widgets of random screen""" """This method is used for clearing the widgets of random screen"""