用户:всетовары查看:0 回复:0 评论:0 创建时间:2023-05-27T10:17:18
【作品展示】

【作品介绍】
每日壁纸
【作品源代码】
import tkinter as tk
import subprocess
def cmd():
subprocess.run('start cmd', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def ts():
subprocess.run('start taskmgr', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def ps():
subprocess.run('start powershell',stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def rt():
subprocess.run('start regedit', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def cn():
subprocess.run('start cleanmgr', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def cl():
subprocess.run('start control', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def df():
subprocess.run('start dfrgui', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def di():
subprocess.run('start diskmgmt', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def wr():
subprocess.run('start winver', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def ms():
subprocess.run('start msconfig', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def ua():
subprocess.run('start UserAccountControlSettings', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def co():
subprocess.run('start compmgmt', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def mo():
subprocess.run('start msinfo32', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def az():
subprocess.run('start appwiz.cpl', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
root = tk.Tk()
root.geometry('500x200')
root.title('系统工具')
button0 = tk.Button(root, text="CMD", bg="white", fg="black",width=8,height=2,command=cmd)
button1 = tk.Button(root, text="任务管理器", bg="white", fg="black",width=10,height=2,command=ts)
button2 = tk.Button(root, text="PowerShell", bg="white", fg="black",width=12,height=2,command=ps)
button3 = tk.Button(root, text="注册表", bg="white", fg="black",width=8,height=2,command=rt)
button4 = tk.Button(root, text="磁盘清理", bg="white", fg="black",width=8,height=2,command=cn)
button5 = tk.Button(root, text="控制面板", bg="white", fg="black",width=8,height=2,command=cl)
button6 = tk.Button(root, text="碎片整理", bg="white", fg="black",width=8,height=2,command=df)
button7 = tk.Button(root, text="磁盘管理", bg="white", fg="black",width=8,height=2,command=di)
button8 = tk.Button(root, text="系统属性", bg="white", fg="black",width=8,height=2,command=wr)
button9 = tk.Button(root, text="系统配置", bg="white", fg="black",width=8,height=2,command=ms)
button10 = tk.Button(root, text="UAC设置", bg="white", fg="black",width=8,height=2,command=ua)
butto = tk.Button(root, text="计算机管理", bg="white", fg="black",width=10,height=2,command=co)
butto1 = tk.Button(root, text="系统信息", bg="white", fg="black",width=8,height=2,command=mo)
butto2 = tk.Button(root, text="程序和功能", bg="white", fg="black",width=10,height=2,command=az)
button0.place(x=0,y=0)
button1.place(x=80,y=0)
button2.place(x=175,y=0)
button3.place(x=280,y=0)
button4.place(x=360,y=0)
button5.place(x=0,y=50)
button6.place(x=80,y=50)
button7.place(x=165,y=50)
button8.place(x=245,y=50)
button9.place(x=330,y=50)
button10.place(x=410,y=50)
butto.place(x=0,y=100)
butto1.place(x=90,y=100)
butto2.place(x=170,y=100)
root.mainloop()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn