diff --git a/工具/tools panel.py b/工具/tools panel.py index 3f92f438..deaca523 100644 --- a/工具/tools panel.py +++ b/工具/tools panel.py @@ -72,11 +72,11 @@ ButtonKXTH = Button(root, text = "寻找空闲题号", command = lambda: (comman ButtonKXTH.place(x=20,y=20) # 批量收录题目按钮 -ButtonSLTM = Button(root, text = "批量收录题目", command = lambda: (commandname.set("批量收录题目"),LabelTool.config(text = "批量收录题目"))) +ButtonSLTM = Button(root, text = "批量收录题目", command = lambda: (commandname.set("批量收录题目"),LabelTool.config(text = "批量收录题目"),os.system("code 批量收录题目.py"))) ButtonSLTM.place(x=20,y=50) # 添加关联题目STEP1按钮 -ButtonTJGL = Button(root, text = "添加关联题目STEP1", command = lambda: (commandname.set("添加关联题目STEP1"),LabelTool.config(text = "添加关联题目STEP1"))) +ButtonTJGL = Button(root, text = "添加关联题目STEP1", command = lambda: (commandname.set("添加关联题目STEP1"),LabelTool.config(text = "添加关联题目STEP1"),os.system("code 添加关联题目.py"))) ButtonTJGL.place(x=20,y=80) # 添加关联题目STEP2按钮 ButtonTJGL2 = Button(root, text = "添加关联题目STEP2", command = lambda: (commandname.set("添加关联题目STEP2"),LabelTool.config(text = "添加关联题目STEP2"))) @@ -85,8 +85,9 @@ ButtonTJGL2.place(x=140,y=80) # 题库维护标签 LabelMAINTAINENCE = Label(root, text = "题库维护") LabelMAINTAINENCE.place(x=20,y=200) + # 修改题目STEP1按钮 -ButtonTJGL = Button(root, text = "修改题目STEP1", command = lambda: (commandname.set("修改题目STEP1"),LabelTool.config(text = "修改题目STEP1"))) +ButtonTJGL = Button(root, text = "修改题目STEP1", command = lambda: (commandname.set("修改题目STEP1"),LabelTool.config(text = "修改题目STEP1"),os.system("code 修改题目数据库.py"))) ButtonTJGL.place(x=20,y=220) # 修改题目STEP2按钮 ButtonTJGL2 = Button(root, text = "修改题目STEP2", command = lambda: (commandname.set("修改题目STEP2"),LabelTool.config(text = "修改题目STEP2"))) @@ -106,5 +107,6 @@ ButtonGo.place(x=600, y= 550) # 编译 + root.title(rootname + " 题库工具一览") root.mainloop() \ No newline at end of file