Quellcode durchsuchen

Code for GUI & python venv requirements

david vor 4 Monaten
Ursprung
Commit
e598942d80
2 geänderte Dateien mit 49 neuen und 0 gelöschten Zeilen
  1. 12 0
      requirements.txt
  2. 37 0
      tyrell.py

+ 12 - 0
requirements.txt

@@ -0,0 +1,12 @@
+click==8.2.1
+colorama==0.4.6
+keyboard==0.13.5
+mouse==0.7.1
+MouseInfo==0.1.3
+PyAutoGUI==0.9.54
+PyGetWindow==0.0.9
+PyMsgBox==1.0.9
+pyperclip==1.9.0
+PyRect==0.2.0
+PyScreeze==1.0.1
+pytweening==1.2.0

+ 37 - 0
tyrell.py

@@ -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()