Add separate function to get kivy_state variables

This commit is contained in:
shekhar-cis 2022-06-13 19:15:34 +05:30
parent 17a456dd43
commit 777a9830c3
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -161,11 +161,14 @@ class CutsomSwipeToDeleteItem(MDCardSwipe):
opening_time = NumericProperty(0.5) opening_time = NumericProperty(0.5)
def empty_screen_label(label_str=None, no_search_res_found=None): def kivy_state_variables():
"""Returns default text on screen when no address is there."""
kivy_running_app = App.get_running_app() kivy_running_app = App.get_running_app()
kivy_state = kivy_running_app.kivy_state_obj kivy_state = kivy_running_app.kivy_state_obj
# import pdb; pdb.set_trace() return kivy_state
def empty_screen_label(label_str=None, no_search_res_found=None):
"""Returns default text on screen when no address is there."""
kivy_state = kivy_state_variables()
content = MDLabel( content = MDLabel(
font_style='Caption', font_style='Caption',
theme_text_color='Primary', theme_text_color='Primary',