Fixed kivy import errors & tested the hello world application popup
This commit is contained in:
parent
99eaa59977
commit
f614cb5862
|
@ -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()
|
||||
|
|
28
src/tests/mock/pybitmessage/mpybit.py
Normal file
28
src/tests/mock/pybitmessage/mpybit.py
Normal 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()
|
Reference in New Issue
Block a user