From 96d80a008a576f8bf61feddbe8beea36fa28b155 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Thu, 5 May 2022 16:05:14 +0530 Subject: [PATCH] Initialize kivy_state obj inside init in mpybit --- src/bitmessagekivy/mpybit.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index 14eed581..d4caa883 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/src/bitmessagekivy/mpybit.py @@ -11,7 +11,10 @@ from pybitmessage.bitmessagekivy.kivy_state import KivyStateVariables class NavigateApp(App): """Navigation Layout of class""" - kivy_state_obj = KivyStateVariables() + + def __init__(self): + super(NavigateApp, self).__init__() + self.kivy_state_obj = KivyStateVariables() def build(self): """Method builds the widget"""