Skip to content

Commit 98ad4ab

Browse files
committed
Added set_common_header in mpybit
1 parent 7e5e30d commit 98ad4ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/bitmessagekivy/mpybit.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,14 @@ def reset_login_screen(self):
319319
if self.root.ids.id_newidentity.ids.add_random_bx.children:
320320
self.root.ids.id_newidentity.ids.add_random_bx.clear_widgets()
321321

322+
def set_common_header(self):
323+
"""Common header for all the Screens"""
324+
self.root.ids.toolbar.right_action_items = [
325+
['account-plus', lambda x: self.addingtoaddressbook()]]
326+
self.root.ids.toolbar.left_action_items = [
327+
['menu', lambda x: self.root.ids.nav_drawer.set_state("toggle")]]
328+
return
329+
322330
def open_payment_layout(self, sku):
323331
"""It basically open up a payment layout for kivy UI"""
324332
pml = PaymentMethodLayout()

0 commit comments

Comments
 (0)