Added set_common_header in mpybit

This commit is contained in:
osamacis 2022-11-02 22:28:36 +05:30
parent 7e5e30d125
commit 98ad4abc2f
No known key found for this signature in database
GPG Key ID: 15F978BEFADAB9E1

View File

@ -319,6 +319,14 @@ class NavigateApp(MDApp):
if self.root.ids.id_newidentity.ids.add_random_bx.children: if self.root.ids.id_newidentity.ids.add_random_bx.children:
self.root.ids.id_newidentity.ids.add_random_bx.clear_widgets() 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): def open_payment_layout(self, sku):
"""It basically open up a payment layout for kivy UI""" """It basically open up a payment layout for kivy UI"""
pml = PaymentMethodLayout() pml = PaymentMethodLayout()