Fixed kivy import errors & tested the hello world application popup

This commit is contained in:
kuldeep.k@cisinlabs.com 2021-12-17 17:09:38 +05:30
parent 99eaa59977
commit f614cb5862
No known key found for this signature in database
GPG Key ID: AF4FB299BF7C7C2A
2 changed files with 31 additions and 3 deletions

View File

@ -1,14 +1,14 @@
"""Mock kivy app with mock threads."""
from pybitmessage import state
from pybitmessage.bitmessagekivy.mpybit import NavigateApp
from class_addressGenerator import FakeAddressGenerator
from pybitmessage.mpybit import NavigateApp
from pybitmessage.class_addressGenerator import addressGenerator
def main():
"""main method for starting threads"""
# Start the address generation thread
addressGeneratorThread = FakeAddressGenerator()
addressGeneratorThread = addressGenerator()
# close the main program even if there are threads left
addressGeneratorThread.daemon = True
addressGeneratorThread.start()

View File

@ -0,0 +1,28 @@
"""
Dummy implementation for kivy Desktop and android(mobile) interface
"""
# pylint: disable=too-few-public-methods
from kivy.app import App
from kivy.uix.label import Label
class NavigateApp(App):
"""Navigation Layout of class"""
def build(self):
"""Method builds the widget"""
# pylint: disable=no-self-use
return Label(text="Hello World !")
def clickNavDrawer(self):
"""method for clicking navigation drawer"""
pass
def addingtoaddressbook(self):
"""method for clicking address book popup"""
pass
if __name__ == '__main__':
NavigateApp().run()