From aac15b255a75c185f9c6d692f05535f63fed9ea8 Mon Sep 17 00:00:00 2001 From: 13632530821 Date: Sat, 19 Nov 2022 23:26:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=8F=AD=E7=BA=A7=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=BB=9A=E5=8A=A8=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 点名器.pyw | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/点名器.pyw b/点名器.pyw index 907f9bb..0319f2b 100644 --- a/点名器.pyw +++ b/点名器.pyw @@ -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() \ No newline at end of file