add Static method

This commit is contained in:
shekhar-cis 2022-03-24 19:07:41 +05:30
parent 216f2e0900
commit b553b9c3bb
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -42,12 +42,12 @@ class HelperMyAddress(object):
size=[90 if platform == 'android' else 50, 60],
text='Active', halign='center',
font_style='Body1', theme_text_color='Custom',
text_color=ThemeClsColor
text_color=ThemeClsColor, font_size = '13sp'
)
badge_obj.font_size = '13sp'
return badge_obj
def myaddress_detail_popup(self, obj, width):
@staticmethod
def myaddress_detail_popup(obj, width):
show_myaddress_dialogue = MDDialog(
type="custom",
size_hint=(width, .25),
@ -55,7 +55,8 @@ class HelperMyAddress(object):
)
return show_myaddress_dialogue
def inactive_address_popup(self, width, callback_for_menu_items):
@staticmethod
def inactive_address_popup(width, callback_for_menu_items):
dialog_box = MDDialog(
text='Address is not currently active. Please click on Toggle button to active it.',
size_hint=(width, .25),