diff --git a/main.py b/main.py index 2ce54ad..01674c1 100644 --- a/main.py +++ b/main.py @@ -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)