做的不好,谅解一下(做了一周)
import ttkbootstrap as ttk
from ttkbootstrap.dialogs import Messagebox
import psutil,time,threading,webbrowser,ctypes,os,random
from ttkbootstrap.constants import *
from tkinter.filedialog import askopenfilename
root=ttk.Window(title='',alpha=0.7)
root.resizable(False,False)
root.wm_attributes('-topmost',1)
def lea():
os.system("shutdown -s -t 0")
def da():
path = askopenfilename()
path = path.replace('/',"\ ")
path = path.replace(' ',"")
os.startfile(path)
if not path:
return
def u1():
ttk.Label(root,text='').bind(webbrowser.open("https://hao.360.com/?hj=llq2c"))
def u2():
ttk.Label(root,text='').bind(webbrowser.open("https://www.baidu.com/"))
#m1
menubar = ttk.Menu(root)
def a1():
Messagebox.show_info(title='提示', message=