真tm逆天啊

This commit is contained in:
shenjack 2024-11-03 22:30:41 +08:00
parent 139b954136
commit f24a97e419
Signed by: shenjack
GPG Key ID: 7B1134A979775551

17
main.py
View File

@ -1,11 +1,14 @@
from threading import Thread
import threading
from typing import Callable
from arcade import load_sound, play_sound, stop_sound
# from arcade import load_sound, play_sound, stop_sound
from pyglet import media as pyglet_media
from tkinter import *
from tkinter import font, messagebox, ttk
import tkinter.filedialog
import random, tkinter, time, xlrd, datetime, logging, hashlib, os, shutil, pyperclip, requests, threading
import tkinter
import random, tkinter, time, xlrd, datetime, logging, hashlib, os, shutil, pyperclip, requests
from ttkbootstrap import Style
from docx import Document
from PIL import Image, ImageTk
@ -2058,13 +2061,13 @@ def clean():
speed = 50
nodrag = False
flag_flag = True
t1 = Thread(
t1 = threading.Thread(
target=clean, name="clean"
) # 定义线程t1线程任务为调用task1函数task1函数的参数是6
t2 = Thread(
t2 = threading.Thread(
target=loading, name="main"
) # 定义线程t2线程任务为调用task2函数task2函数无参数
t3 = Thread(target=bsy, name="bsy")
t3 = threading.Thread(target=bsy, name="bsy")
t1.start() # 开始运行t1线程
t2.start() # 开始运行t2线程
time.sleep(5)