From 57dcec9b2a2727715e153509c2a84b553e1e7470 Mon Sep 17 00:00:00 2001 From: surbhicis Date: Thu, 9 Jul 2020 17:32:19 +0530 Subject: [PATCH] fixed CQ for bitmessagekivy.mpybit module part6 --- src/bitmessagekivy/mpybit.py | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index b5bc4bf9..7d643a77 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/src/bitmessagekivy/mpybit.py @@ -1080,24 +1080,31 @@ class Payment(Screen): payloadLengthExtraBytes)) toast('hidden payment address Creating for buying subscription....') + class Category(BoxLayout, RectangularElevationBehavior): - elevation_normal= .01 + elevation_normal = .01 + class ProductLayout(BoxLayout, RectangularElevationBehavior): - elevation_normal= .01 + elevation_normal = .01 + class PaymentMethodLayout(BoxLayout): pass + class ListItemWithLabel(OneLineAvatarIconListItem): pass + class RightLabel(IRightBodyTouch, MDLabel): pass + class HomeScreen(Screen): pass + class Credits(Screen): """Credits Method""" @@ -2281,23 +2288,24 @@ class NavigateApp(MDApp): # self.root.ids.sc7.ids.add_random_bx.clear_widgets() def open_payment_layout(self, sku): - pml= PaymentMethodLayout() - self.product_id= sku - self.custom_sheet= MDCustomBottomSheet(screen= pml) + pml = PaymentMethodLayout() + self.product_id = sku + self.custom_sheet = MDCustomBottomSheet(screen=pml) self.custom_sheet.open() def initiate_purchase(self, method_name): - #self.custom_sheet.dismiss() + # self.custom_sheet.dismiss() print("Purchasing {} through {}".format(self.product_id, method_name)) def _after_scan(self, text): - if platform=='android': - text= cast(CharSequence, String(text)) - show_toast(text,Toast.LENGTH_SHORT) + if platform == 'android': + text = cast(CharSequence, String(text)) + show_toast(text, Toast.LENGTH_SHORT) else: self.root.ids.sc3.children[1].ids.txt_input.text = text self.root.ids.scr_mngr.current = 'create' + class GrashofPopup(Popup): """Moule for save contacts and error messages""" @@ -2412,9 +2420,11 @@ class GrashofPopup(Popup): text = "Some data encoded in the address is malformed." return text + class InfoLayout(BoxLayout, RectangularElevationBehavior): pass + class AvatarSampleWidget(ILeftBody, Image): """Avatar Sample Widget"""