This repository has been archived on 2024-12-13. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2024-12-13/src/mock/kivy_main.py

26 lines
643 B
Python
Raw Normal View History

"""Mock kivy app with mock threads."""
# pylint: disable=unused-import
# flake8: noqa:E401
from pybitmessage import state
from pybitmessage.bitmessagekivy.mpybit import NavigateApp
import multiqueue
from class_addressGenerator import FakeAddressGenerator
def main():
"""main method for starting threads"""
# Start the address generation thread
addressGeneratorThread = FakeAddressGenerator()
# close the main program even if there are threads left
addressGeneratorThread.daemon = True
addressGeneratorThread.start()
state.kivyapp = NavigateApp()
state.kivyapp.run()
if __name__ == '__main__':
main()