-
Notifications
You must be signed in to change notification settings - Fork 209
/
MrHolmes.py
48 lines (42 loc) · 1.65 KB
/
MrHolmes.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/python3
# ORIGINAL CREATOR: Luca Garofalo (Lucksi)
# AUTHOR: Luca Garofalo (Lucksi)
# Copyright (C) 2021-2023 Lucksi <lukege287@gmail.com>
# License: GNU General Public License v3.0
import os
from Core.Support import Menu
from Core.Support import Font
from Core.Support import Language
filename = Language.Translation.Get_Language()
filename
class Main:
@staticmethod
def Controll_Display():
Interface_file = "Display/Display.txt"
if os.path.isfile(Interface_file):
d = open(Interface_file,"r",newline=None)
conf = d.read().strip("\n")
d.close()
if conf == "Desktop":
pass
elif conf == "Mobile":
pass
else:
print(Font.Color.RED + "[!]" + Font.Color.WHITE + Language.Translation.Translate_Language(filename, "Default", "DisplayError", "None"))
exit()
else:
print(Font.Color.RED + "[!]" + Font.Color.WHITE + Language.Translation.Translate_Language(filename, "Default", "NoDisplay", "None") .format(Interface_file))
return conf
def Menu(Mode):
Menu.Main.main(Mode)
if __name__ == "__main__":
Mode = Main.Controll_Display()
Mode
try:
Main.Menu(Mode)
except KeyboardInterrupt:
print(Font.Color.RED + "\n\n[!]" + Font.Color.WHITE + Language.Translation.Translate_Language(filename, "Default", "KeyC", "None"))
exit()
except ModuleNotFoundError as Error:
print(Font.Color.RED + "\n\n[!]" + Font.Color.WHITE + Language.Translation.Translate_Language(filename, "Default", "Internal", "None").format(str(Error)))
exit()