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

27 lines
741 B
Python
Raw Normal View History

2021-03-16 20:28:14 +01:00
"""This module is for thread start."""
import state
from bitmessagekivy.mpybit import NavigateApp
2021-04-08 14:09:05 +02:00
from fake_addressGenerator import FakeAddressGenerator
from threads import sqlThread
2021-05-19 10:27:10 +02:00
def main():
2021-07-20 11:13:55 +02:00
# Start the address generation thread
addressGeneratorThread = FakeAddressGenerator()
# close the main program even if there are threads left
addressGeneratorThread.daemon = True
addressGeneratorThread.start()
2021-07-20 11:13:55 +02:00
sqlLookup = sqlThread()
# DON'T close the main program even if there are threads left.
# The closeEvent should command this thread to exit gracefully.
sqlLookup.daemon = False
sqlLookup.start()
state.kivyapp = NavigateApp()
state.kivyapp.run()
2021-03-16 20:28:14 +01:00
if __name__ == '__main__':
main()