From b553b9c3bb735a82890688b63d02e6f118b514bc Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Thu, 24 Mar 2022 19:07:41 +0530 Subject: [PATCH] add Static method --- src/bitmessagekivy/baseclass/myaddress_widgets.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bitmessagekivy/baseclass/myaddress_widgets.py b/src/bitmessagekivy/baseclass/myaddress_widgets.py index 4c67ef35..1ef8cd0d 100644 --- a/src/bitmessagekivy/baseclass/myaddress_widgets.py +++ b/src/bitmessagekivy/baseclass/myaddress_widgets.py @@ -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),