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 sys
|
||||||
import win32con, win32api
|
import win32con, win32api
|
||||||
import winsound
|
import winsound
|
||||||
|
import time
|
||||||
|
|
||||||
gui_size = "620x200"
|
gui_size = "620x200"
|
||||||
|
|
||||||
@@ -33,6 +34,7 @@ down_persent = 40
|
|||||||
filename = "names.xls"
|
filename = "names.xls"
|
||||||
configname = "config.data"
|
configname = "config.data"
|
||||||
selname = "sel.wav"
|
selname = "sel.wav"
|
||||||
|
procname = "proc.wav"
|
||||||
elim_rows = 1
|
elim_rows = 1
|
||||||
percent_override = True
|
percent_override = True
|
||||||
|
|
||||||
@@ -157,11 +159,9 @@ def choose():
|
|||||||
cur_stu = temp[:]
|
cur_stu = temp[:]
|
||||||
else:
|
else:
|
||||||
protection_override = False
|
protection_override = False
|
||||||
|
|
||||||
if not cur_stu:
|
if not cur_stu:
|
||||||
protection_override = False
|
protection_override = False
|
||||||
sel_class(0)
|
sel_class(0)
|
||||||
|
|
||||||
choice = random.choice(cur_stu)
|
choice = random.choice(cur_stu)
|
||||||
# print(choice.name)
|
# print(choice.name)
|
||||||
counter = 0;
|
counter = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user