Код: Выделить всё
import customtkinter
from PIL import Image
from tkinter import PhotoImage
import threading
app = customtkinter.CTk(fg_color="black")
app.geometry("600x600")
#components for loading were here
#animation function
def animestrt():
loader.place(relx=0.2375, rely=0.15)
Loading.place(relx=0.09, rely=0.8)
lol.place(relx=0.09, rely=0.86)
animation(count)
app.mainloop()
diff_itags = [#somethings_to_run_through]
results = []
#function that take time and will happen behind loader
def func():
for itagg in diff_itags:
print(results)
print("done")
process = threading.Thread(name="process",target=func)
process.start()
while process.is_alive():
animestrt()
Не могли бы вы подсказать мне какие-нибудь решения, позволяющие хотя бы очистить окно приложения после завершения процесса, чтобы затем могли перейти основные компоненты приложения? ?
Подробнее здесь: https://stackoverflow.com/questions/781 ... g-together