新增班级选择滚动条

This commit is contained in:
13632530821
2022-11-19 23:26:19 +08:00
parent 4a9bd48cc1
commit aac15b255a

View File

@@ -12,7 +12,7 @@ configname = "./data/config.data"
selname = "./assets/sel.wav"
procname = "./assets/proc.wav"
iconname = "./assets/点名器.ico"
gui_size = "620x200"
gui_size = "650x200"
sound = True
@@ -209,6 +209,10 @@ startrandom = Button(gui, text = "立刻摇人!", font = ("宋体", 17, "bold"),
setclass = Button(gui, text = "应用班级选用", font = ("宋体", 17), height = 2, command = sel_class, bg = "white")
scrool = Scrollbar(gui, command = listbox.yview)
listbox.config(yscrollcommand=scrool.set)
name_label = Label(gui, textvariable = cur_name, font = ("宋体", 30, "bold"), width = 20, bg = "white", fg = "blue")
class_label = Label(gui, text = "", font = ("宋体", 15), width = 20, bg = "white")
subject_label = Label(gui, text = "", font = ("宋体", 15), width = 20, bg = "white")
@@ -219,5 +223,6 @@ name_label.grid(row = 1, column = 1, sticky = N+S)
listbox.grid(row = 1, column = 2, sticky = N+S)
startrandom.grid(row = 3, column = 1, sticky = N+S+E+W)
setclass.grid(row = 3, column = 2, sticky = N+S+E+W)
scrool.grid(row = 1, column = 3, sticky = N+S)
gui.mainloop()