From 98ad4abc2f4b4ac05737cc64c11cc37309f06907 Mon Sep 17 00:00:00 2001 From: osamacis Date: Wed, 2 Nov 2022 22:28:36 +0530 Subject: [PATCH] Added set_common_header in mpybit --- src/bitmessagekivy/mpybit.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index 8eb1f9fe..e303156a 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/src/bitmessagekivy/mpybit.py @@ -319,6 +319,14 @@ class NavigateApp(MDApp): if self.root.ids.id_newidentity.ids.add_random_bx.children: self.root.ids.id_newidentity.ids.add_random_bx.clear_widgets() + def set_common_header(self): + """Common header for all the Screens""" + self.root.ids.toolbar.right_action_items = [ + ['account-plus', lambda x: self.addingtoaddressbook()]] + self.root.ids.toolbar.left_action_items = [ + ['menu', lambda x: self.root.ids.nav_drawer.set_state("toggle")]] + return + def open_payment_layout(self, sku): """It basically open up a payment layout for kivy UI""" pml = PaymentMethodLayout()