main.py aktualisiert
This commit is contained in:
@@ -1,8 +1,28 @@
|
|||||||
from cryptography.fernet import Fernet
|
|
||||||
import customtkinter as ctk
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import pyperclip
|
import pyperclip
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
|
try:
|
||||||
|
import customtkinter as ctk
|
||||||
|
except ImportError:
|
||||||
|
subprocess.check_call([sys.executable, "-m", "pip", "install", "customtkinter"])
|
||||||
|
import customtkinter as ctk
|
||||||
|
|
||||||
|
try:
|
||||||
|
from cryptography.fernet import Fernet
|
||||||
|
except ImportError:
|
||||||
|
subprocess.check_call([sys.executable, "-m", "pip", "install", "cryptography"])
|
||||||
|
from cryptography.fernet import Fernet
|
||||||
|
|
||||||
|
try:
|
||||||
|
import pyperclip
|
||||||
|
except ImportError:
|
||||||
|
subprocess.check_call([sys.executable, "-m", "pip", "install", "pyperclip"])
|
||||||
|
import pyperclip
|
||||||
|
|
||||||
ctk.set_appearance_mode("Dark")
|
ctk.set_appearance_mode("Dark")
|
||||||
app = ctk.CTk()
|
app = ctk.CTk()
|
||||||
|
|||||||
Reference in New Issue
Block a user