- kivy mock now uses a mock multiqueue, as the existing code didn't handle all problems. For example, trying to load OpenSSL currently crashes on my M1 Mac, so I can't even add an exception handler to fall back. With this patch, the kivy_mock simply forces a fallback to Queue
26 lines
643 B
Python
26 lines
643 B
Python
"""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()
|