-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
759c622
commit cf37169
Showing
6 changed files
with
59 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"""This module is for thread start.""" | ||
import state | ||
import sys | ||
from bitmessagemain import main | ||
from termcolor import colored | ||
print(colored('kivy is not supported at the moment for this version..', 'red')) | ||
sys.exit() | ||
|
||
|
||
if __name__ == '__main__': | ||
state.kivy = True | ||
print("Kivy Loading......") | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
"""This module is for thread start.""" | ||
# pylint: disable=unused-import, wrong-import-position, ungrouped-imports | ||
# flake8: noqa:E401, E402 | ||
|
||
"""Mock kivy app with mock threads.""" | ||
|
||
import os | ||
from kivy.config import Config | ||
from mockbm import multiqueue | ||
import state | ||
import sys | ||
from bitmessagemain import main | ||
from termcolor import colored | ||
print(colored('kivy is not supported at the moment for this version..', 'red')) | ||
sys.exit() | ||
|
||
from mockbm.class_addressGenerator import FakeAddressGenerator # noqa:E402 | ||
from bitmessagekivy.mpybit import NavigateApp # noqa:E402 | ||
from mockbm import network # noqa:E402 | ||
|
||
stats = network.stats | ||
objectracker = network.objectracker | ||
|
||
|
||
def main(): | ||
"""main method for starting threads""" | ||
addressGeneratorThread = FakeAddressGenerator() | ||
addressGeneratorThread.daemon = True | ||
addressGeneratorThread.start() | ||
state.kivyapp = NavigateApp() | ||
state.kivyapp.run() | ||
addressGeneratorThread.stopThread() | ||
|
||
|
||
if __name__ == '__main__': | ||
state.kivy = True | ||
print("Kivy Loading......") | ||
if __name__ == "__main__": | ||
os.environ['INSTALL_TESTS'] = "True" | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters