|
@@ -0,0 +1,37 @@
|
|
|
+
|
|
|
+from sys import exit
|
|
|
+
|
|
|
+if __name__ != "__main__":
|
|
|
+ print("Library codebase isn't implemented yet.")
|
|
|
+ exit()
|
|
|
+
|
|
|
+from os import name as OS_NAME
|
|
|
+# from os import makedirs, removedirs
|
|
|
+#from os.path import exists, join
|
|
|
+from tkinter import Tk, N as tk_N, E as tk_E, S as tk_S, W as tk_W
|
|
|
+from tkinter.ttk import Frame, Label, Button
|
|
|
+
|
|
|
+try:
|
|
|
+ from click import echo, style
|
|
|
+except ImportError:
|
|
|
+ print("!!! FATAL ERROR !!!")
|
|
|
+ print("Please activate a virtual environment and install requirements.txt")
|
|
|
+ exit()
|
|
|
+
|
|
|
+platform: str = ""
|
|
|
+if "linux" in OS_NAME.lower():
|
|
|
+ platform = "LINUX"
|
|
|
+elif "windows" in OS_NAME.lower() or "nt" in OS_NAME.lower():
|
|
|
+ platform = "WINDOWS"
|
|
|
+elif "darwin" in OS_NAME.lower():
|
|
|
+ platform = "MACOS"
|
|
|
+else:
|
|
|
+ echo(style("ERROR", fg="bright_red") + " Platform 'Linux', 'Windows' or 'MacOS' expected")
|
|
|
+ print(f" Platform: {OS_NAME}")
|
|
|
+ exit()
|
|
|
+
|
|
|
+root = Tk()
|
|
|
+root.title("Tyrell")
|
|
|
+
|
|
|
+root.focus()
|
|
|
+root.mainloop()
|