mirror of
https://github.com/HChaZZY/Random-Picker.git
synced 2025-12-06 10:33:50 +08:00
添加选择中音效
This commit is contained in:
4
点名器.pyw
4
点名器.pyw
@@ -5,6 +5,7 @@ import random
|
||||
import sys
|
||||
import win32con, win32api
|
||||
import winsound
|
||||
import time
|
||||
|
||||
gui_size = "620x200"
|
||||
|
||||
@@ -33,6 +34,7 @@ down_persent = 40
|
||||
filename = "names.xls"
|
||||
configname = "config.data"
|
||||
selname = "sel.wav"
|
||||
procname = "proc.wav"
|
||||
elim_rows = 1
|
||||
percent_override = True
|
||||
|
||||
@@ -157,11 +159,9 @@ def choose():
|
||||
cur_stu = temp[:]
|
||||
else:
|
||||
protection_override = False
|
||||
|
||||
if not cur_stu:
|
||||
protection_override = False
|
||||
sel_class(0)
|
||||
|
||||
choice = random.choice(cur_stu)
|
||||
# print(choice.name)
|
||||
counter = 0;
|
||||
|
||||
Reference in New Issue
Block a user