广告位

jw.mdjnu.com

今天,我得到了这样一个短视频。不知道能不能写一个类似的班级点名程序。想法等不下去了,就写吧~

今天,我得到了这样一个短视频。不知道能不能写一个类似的班级点名程序。想法等不下去了,就写吧~

一.准备工作

可以私信边肖01获取大量Python学习资源。

1.Tkinter

Tkinter是python内置的TK GUI工具集。TK是Tcl语言的原生GUI库。作为python的图形设计工具,其使用的Tcl语言环境已经完全嵌入到python解释器中。

我们使用Tkinter开发GUI界面。

2.PIL

PIL(Python Image Library)库是Python语言的第三方库,需要通过pip工具安装。安装PIL库的方法如下。需要注意的是,安装库的名字是pillow。

PIL图书馆支持图像存储、显示和处理。几乎可以处理所有的图像格式,可以完成对图像的缩放、裁剪、叠加、添加线条、图像、文字等操作。

用PIL的image和imagetk来处理和引入一个图片,可以用下面的代码来安装。

pip安装枕头

二.预览1.启动

双击打开,进入软件主界面。所有功能一目了然。该程序将自动识别软件目录中的names.txt并导入其中的名称。

2.开始点名-顺序点名

选择好点名顺序后,点击开始,名字就会开始在屏幕上滚动。名字出现的概率是一样的。点击停止,姓名停止滚动,点名结束。

3.开始点名-随机点名

点击随机点名,程序会随机点名,名字出现的概率是随机的。

4.手动加载人名单

可以自己手动选择人员列表,前提是人员列表的格式为txt,每个名字占一行。

5.开始点名-顺序点名-Pyqt5版本

我还用Pyqt5写了一个版本。逻辑和TK版一样,界面可能更好看,但是文件大很多。你可以在总结部分自己拿。

三.思路1.整体实现思路2.点名实现思路四.源代码point_names-GUI.py(主程序GUI)

import randomimport reimport timeimport threadingfrom tkinter import *from tkinter import ttkfrom base64 import b64decodefrom PIL import Image,ImageTkfrom tkinter import messageboxfrom tkinter.filedialog import askopenfilename""""2021-11-10点名/抽奖程序主要亮点:1.两种模式:①顺序点名②随机点名2.自动识别人名单3.支持手动导入人名单4.人名单导入校验5.人名显示位置自动矫正6.最多显示五个大字"""imgs=['./point_name.png']class APP: def __init__(self): self.root = Tk() self.running_flag=False #开始标志 self.time_span=0.05 #名字显示间隔 self.root.title('Point_name-V1.0') width = 680 height = 350 left = (self.root.winfo_screenwidth() – width) / 2 top = (self.root.winfo_screenheight() – height) / 2 self.root.geometry("%dx%d+%d+%d" % (width, height, left, top)) self.root.resizable(0,0) self.create_widget() self.set_widget() self.place_widget() self.root.mainloop() def create_widget(self): self.label_show_name_var=StringVar() self.label_show_name=ttk.Label(self.root,textvariable=self.label_show_name_var,font=('Arial', 100,"bold"),foreground = '#1E90FF') self.btn_start=ttk.Button(self.root,text="开始",) self.btn_load_names=ttk.Button(self.root,text="手动加载人名单",) self.lf1=ttk.LabelFrame(self.root,text="点名方式") self.radioBtn_var=IntVar() self.radioBtn_var.set(1) self.radioBtn_sequence=ttk.Radiobutton(self.lf1,text="顺序点名",variable=self.radioBtn_var, value=https://jjlks.cn/1) self.radioBtn_random=ttk.Radiobutton(self.lf1,text="随机点名",variable=self.radioBtn_var, value=2) self.label_show_name_num=ttk.Label(self.root,font=('Arial', 20),foreground = '#FF7F50') paned = PanedWindow(self.root) self.img = imgs img_=b'iVBORw0KGgoAAAANSUhEUgAAALQAAAB4CAIAAADUhU+qAAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nO196XNbx5Vvd9+LfSU2EgD3fRNZRkyVJseY9sP7scOy+ZTCqpVKXm8/wp+TA1X2amJjWZSXksy1Ik27IsWXIsRpK1kCIpLgBJkAAXrMQO3K3fh0O0rkBKkaONzvOJSwGBu3b/+uznNKaUoh/oyZB6bDHG2+RSD0/807mNmth7ql/ymbz8EyL2LvdbeH/bC245bk+UHgQOSik8x8O85P0eHb5XX4pSSghRX7Pq+nAwxhi+3zwWlFJFURBC7Dr3G68tv3/0UYYnZC91P8IYw3NSSjmO23zTv/okbPTYaz7NlXMXHJtf+AHTw05hn9kxVaewi9AKVX2z+Sz1uQ+4KUlmVUGTIGvs2j/52e/6/SZlg/4PqKokiSVPWQD39TgFfVuD1tzgGvUbWg2dPcj7b8VT09DAQIIVmWy+VyqVSSZVl9I/bmWq1Wr9drNJrNs7uZtb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FRkZGYH9oaPh0b48eqVgqrK6unjt3ThCFjU3/FBlTTAiliAIaONAzMKaKQplOitBdpRepvKWVD4QQjVajN+hz+QL6XqgVDyRekqVn/Qz3pQ2GQZWyUM7msphgm92m0fIKVWRZ3ghzKAj0BJD+iqIIolgWBKvNZnfUEI5QpFBEMMZwGCYYEwVhiRIZUyQpgkJFTBBVkILljZCKBhENorKMiCwjUZAo+MEQYlFacJZTvKFXQEiQEEJ4LTEYdbwWK1SQZFGSZXiXeznH9wM2/w8z07TIub6ABQAAAABJRU5ErkJggg==' the_img = b64decode(img_)#将图片硬编码到GUI paned.image = ImageTk.PhotoImage(data=the_img) self._img = Label(self.root, image=paned.image,background='black') def set_widget(self): default_name_="会是谁?" self.label_show_name_var.set(default_name_) self.label_show_name_adjust(default_name_) self.btn_start.config(command=lambda :self.thread_it(self.start_point_name)) self.btn_load_names.config(command=self.load_names) init_names=self.load_names_txt("./names.txt") self.root.protocol('WM_DELETE_WINDOW',self.quit_window) self.root.bind('',self.quit_window) if init_names: self.default_names=init_names #1.文件存在但是无内容。2.文件不存在 self.label_show_name_num.config(text=f"一共加载了{len(self.default_names)}个姓名") else: self.btn_start.config(state=DISABLED) self.label_show_name_num.config(text=f"请先手动导入人名单!") def place_widget(self): self.lf1.place(x=300,y=160,width=250,height=50) self.radioBtn_sequence.place(x=20,y=0) self.radioBtn_random.place(x=150,y=0) self.btn_start.place(x=300,y=220,width=100,height=30) self.btn_load_names.place(x=450,y=220,width=100,height=30) self._img.place(x=90, y=165, height=120, width=180) self.label_show_name_num.place(x=300,y=260) def label_show_name_adjust(self,the_name): if len (the_name)==1: self.label_show_name.place(x=280, y=10) elif len(the_name) == 2: self.label_show_name.place(x=180, y=10) elif len(the_name) == 3: self.label_show_name.place(x=120, y=10) elif len(the_name) == 4: self.label_show_name.place(x=80, y=10) else: self.label_show_name.place(x=0, y=10) def start_point_name(self): """ 启动之前进行判断,获取点名模式 :return: """ if len(self.default_names)==1: messagebox.showinfo("提示",'人名单就一个人,不用选了!') self.label_show_name_var.set(self.default_names[0]) self.label_show_name_adjust(self.default_names[0]) return if self.btn_start["text"]=="开始": self.btn_load_names.config(state=DISABLED) self.running_flag=True if isinstance(self.default_names,list): self.btn_start.config(text="就你了") if self.radioBtn_var.get()==1: mode="sequence" elif self.radioBtn_var.get()==2: mode="random" else: pass self.thread_it(self.point_name_begin(mode)) else: messagebox.showwarning("警告","请先导入人名单!") else: self.running_flag=False self.btn_load_names.config(state=NORMAL) self.btn_start.config(text="开始") def point_name_begin(self,mode): """ 开始点名,点名主函数 :param mode: :return: """ if mode == "sequence": if self.running_flag: self.always_ergodic() elif mode=="random": while True: if self.running_flag: random_choice_name=random.choice(self.default_names) self.label_show_name_var.set(random_choice_name) self.label_show_name_adjust(random_choice_name) time.sleep(self.time_span) else: break def always_ergodic(self): """ 一直遍历此列表,使用死循环会造成线程阻塞 :return: """ for i in self.default_names: if self.running_flag: self.label_show_name_var.set(i) self.label_show_name_adjust(i) time.sleep(self.time_span) if i==self.default_names[-1]: self.always_ergodic() else: break def load_names(self): """ 手动加载txt格式人名单 :return: """ filename = askopenfilename( filetypes = [('文本文件', '.TXT'), ], title = "选择一个文本文件", initialdir="./" ) if filename: names=self.load_names_txt(filename) if names: self.default_names=names no_Chinese_name_num=len([n for n in names if not self.load_name_check(n)]) if no_Chinese_name_num==0: pass else: messagebox.showwarning("请注意",f'导入名单有{no_Chinese_name_num}个不是中文名字') self.label_show_name_num.config(text=f"一共加载了{len(self.default_names)}个姓名") default_name_ = "会是谁?" self.label_show_name_var.set(default_name_) self.label_show_name_adjust(default_name_) self.btn_start.config(state=NORMAL) else: messagebox.showwarning("警告","导入失败,请检查!") def load_names_txt(self,txt_file): """ 读取txt格式的人名单 :param txt_file: :return: """ try: with open(txt_file,'r',encoding="utf-8")as f: names=[name.strip() for name in f.readlines()] if len(names)==0: return False else: return names except: return False def load_name_check(self,name): """ 对txt文本中的人名进行校验 中文汉字->True 非中文汉字->False :param name: :return: """ regex = r'[//u4e00-//u9fa5]+' if re.match(regex,name): return True else: return False def thread_it(self,func,*args): t=threading.Thread(target=func,args=args) t.setDaemon(True) t.start() def quit_window(self,*args): """ 程序退出触发此函数 :param args: :return: """ ret=messagebox.askyesno('退出','确定要退出?') if ret: self.root.destroy()if __name__ == '__main__': a=APP()

导入随机导入重新导入时间导入线程从tkinter导入*从tkinter导入ttk从base64导入b64decodefrom从PIL导入Image,imagetk从tkinter导入messageboxfrom从tkinter . file对话框导入askopenfilename & # 34"""2021年11月10日的点名/抽签节目主要亮点有:1。两种模式:1。顺序点名2。随机点名2。自动识别人员名单3。支持手动导入人员列表4。人员列表5的导入验证。名称显示位置6的自动修正。最多显示五个汉字& # 34;""imgs =[& # 39;。/point _ name . png & # 39;]class app:def _ _ init _ _(self):self . root = tk()self . running _ flag = false # start flag self . time _ span = 0.05 # name显示间隔self . root . title(& # 39;point _ name-v 1.0 & # 39;)width = 680 height = 350 left =(self . root . winfo _ screen width()-width)/2 top =(self . root . winfo _ screen height()-height)/2 self . root . geometry(& # 34;% dx % d+% d+% d & # 34;% (width,height,left,top)) self.root.resizable(0,0)self . create _ widget()self . set _ widget()self . place _ widget()self . root . main loop()def create _ widget(self):self . label _ show _ name _ var = string var()self . label _ show _ name = ttk .Label(self.root,text variable = self . label _ show _ name _ var,font =(& # 39;Arial & # 39, 100,"bold & # 34),前景= & # 39;# 1E90FF & # 39)self.btn_start=ttk。Button(self.root,text = & # 34开始& # 34;,)self.btn_load_names=ttk。Button(self.root,text = & # 34手动装载机列表& # 34;,)self.lf1=ttk。LabelFrame(self.root,text = & # 34点名法& # 34;)self . radio BTN _ var = int var()self . radio BTN _ var . set(1)self . radio BTN _ sequence = ttk。Radiobutton(self.lf1,text = & # 34依次点名& # 34;,variable=self.radioBtn_var,value = https://jjlks.cn/1)self . radio BTN _ random = ttk。Radiobutton(self.lf1,text = & # 34随机点名& # 34;,variable=self.radioBtn_var,value = 2)self . label _ show _ name _ num = ttk。Label(self.root,font =(& # 39;Arial & # 39,20),前景= & # 39;# FF7F50 & # 39)paned = paned window(self . root)self . img = imgs img _ = b & # 39;ivborw 0k ggoaaaanshuugaaalqaaaab 4 caiaaduhu+qaaaacxbiwxmaastaaaaaaaeweampwyaaagaeleqvr 4 no 196 xnbx 5 vvd 9+lfsu 2 EGD 3 frnzrkyvjsey 9 sp 7 scoy+ZTC qpvkxm 8/WP+ta 1 x2 amjwzsxksy 1k 27 iswxisrpk 1 ciplgbjkaaxrmqo 3 f 00 rkbkkaonzvojswgbu 3 b/+uznnkaouh dTguFwuXLlyGlubOzk3W/2t 5 saz 06 oddgoiggaogrkzfylabjwll 30am 9 xfxsnr 0 dxyfy 5 hjwbzalmqabyhoajywcwwi 8 VUT 7 tclq/x 63 q 6 qeammg 1 bxyoy 7/QL a3 gwmwddqwcdgaway+fef kze 5 VN 5 NQ 6 i8 viq 0 PD 6 ogo 9 oygmqyporsxrurk qmqac/xch qvd 3d 0 ul 8 VN 8 z 3 irdw m 29 lz 8 txbfgziiqoqmtmiuwroggwkgikmhjsjfcibkydisjmtupkwlgwfugjvgtdg 7 mceq+zlovckirh 5 yyey 46 qdewockakqmwcfiarabmjsilbggpckzln 54 uryplmzizdbjt 27m 033 njd 5/npnvx 2 xnsrhiza xzfikbiiyyuzqamtbw 1m 7 fvj 09 pw2 xwerr/oabb 06 epjjzro 6 u+x2+8 zm _img = b64decode(img_)#将图片硬编码到GUI pane . image = imagetk . photoimage(data = the _ img)self。_ img = label (self.root,image = pane.image,background = & # 39黑& # 39;)def set _ widget(self):default _ name _ = & # 34;会是谁呢?"self . label _ show _ name _ var . set(default _ name _)self . label _ show _ name _ adjust(default _ name _)self . BTN _ start . config(command = lambda:self . thread _ it(self . start _ point _ name))self . BTN _ load _ names . config(command = self . load _ names)init _ names = self . load _ names _ txt(& # 34;。/names . txt & # 34;)self . root . protocol(& # 39;WM _ DELETE _ WINDOW & # 39,self . quit _ window)self . root . bind(& # 39;& ltEscape & gt',self . quit _ window)if init _ names:self . default _ names = init _ names # 1。文件存在,但没有内容。2.self . label _ show _ name _ num . config(text = f & # 34;总共加载了{len(self.default_names)}个名称& # 34;)else:self . BTN _ start . config(state = DISABLED)self . label _ show _ name _ num . config(text = f & # 34;请先手动导入列表!")def place _ widget(self):self . lf1 . place(x = 300,y=160,width=250,height = 50)self . radio BTN _ sequence . place(x = 20,y = 0)self . radio BTN _ random . place(x = 150,y=0) self.btn_start.place(x=300,y=220,width=100,height = 30)self . BTN _ load _ names . place(x = 450_img.place(x=90,y=165,height=120,width = 180)self . label _ show _ name _ num . place(x = 300,y = 260)def label _ show _ name _ adjust(self,the _ name):if len(the _ name)= = 1:self . label _ show _ name . place(x = 280,y = 10)elif len(the _ name)= = 2:self . label _ show _ name . place(x = 180""开始获取点名模式前判断:return:& # 34;""if len(self . default _ names)= = 1:messagebox . showinfo(& # 34;提示& # 34;,'名单上只有一个人,千万别选!')self . label _ show _ name _ var . set(self . default _ names[0])self . label _ show _ name _ adjust(self . default _ names[0])返回if self . BTN _ start[& # 34;正文& # 34;]=="开始& # 34;:self . BTN _ load _ names . config(state = DISABLED)self . running _ flag = True if is instance(self . default _ names,list):self . BTN _ start . config(text = & # 34;是你& # 34;)if self . radio BTN _ var . get()= = 1:mode = & # 34;序列& # 34;elif self . radio BTN _ var . get()= = 2:mode = & # 34;随机& # 34;else:pass self . thread _ it(self . point _ name _ begin(mode))else:messagebox . show warning(& # 34;警告& # 34;,"请先导入人员列表!")else:self . running _ flag = False self . BTN _ load _ names . config(state = NORMAL)self . BTN _ start . config(text = & # 34;开始& # 34;)def point_name_begin(self,mode):& # 34;""开始点名,点名主函数:param mode::return:& # 34;""if mode = = & # 34序列& # 34;:if self . running _ flag:self . always _遍历()elif mode = = & # 34随机& # 34;:while True:if self . running _ flag:random _ choice _ name = random . choice(self . default _ names)self . label _ show _ name _ var . set(random _ choice _ name)self . label _ show _ name _ adjust(random _ choice _ name)time . sleep(self . time _ span)else:break def always _遍历(self):& # 34;""一直遍历这个列表,使用无限循环会导致线程阻塞:return:& # 34;""for I in self . default _ names:if self . running _ flag:self . label _ show _ name _ var . set(I)self . label _ show _ name _ adjust(I)time . sleep(self . time _ span)if I = = self . default _ names[-1]:self . always _遍历()else:break def load _ names(self):& # 34;""手动加载txt格式的人员列表:return:& # 34;""filename = askopenfilename(文件类型=[(& # 39;文本文件& # 39;, '。TXT & # 39),],title = & # 34选择一个文本文件& # 34;,initialdir = & # 34。/")if filename:names = self . load _ names _ txt(filename)if names:self . default _ names = names no _ Chinese _ name _ num = len([n for n in names if not self . load _ name _ check(n)])if no _ Chinese _ name _ num = = 0:pass else:messagebox . show warning(& # 34;请注意& # 34;,f & # 39导入列表中有{no_Chinese_name_num}个非中文名称& # 39;)self . label _ show _ name _ num . config(text = f & # 34;总共加载了{len(self.default_names)}个名称& # 34;)default _ name _ = & # 34会是谁呢?"self . label _ show _ name _ var . set(default _ name _)self . label _ show _ name _ adjust(default _ name _)self . BTN _ start . config(state = NORMAL)else:messagebox . show warning(& # 34;警告& # 34;,"导入失败,请检查!")def load_names_txt(self,txt _ file):& # 34;""阅读txt格式的人列表:param txt _ file::return:& # 34;""try: with open(txt_file,& # 39;r & # 39,编码= & # 34;utf-8 & # 34;)as f:names =[name . strip()for name in f . readlines()]if len(names)= = 0:返回False else:返回名称except:返回False def load_name_check(self,name):& # 34;""检查txt文本中的姓名汉字-& gt;真正的非中文字符-& gt;false:param name::return:& # 34;""regex = r & # 39[// u4e 00-// u9fa 5]+& # 39;if re.match(regex,name):返回True else:返回False def thread_it(self,func,*args): t=threading。Thread(target=func,args = args)t . set daemon(True)t . start()def quit _ window(self,* args):& # 34;""程序退出触发此函数:param args::return:& # 34;""ret = messagebox . ask yesno(& # 39;退出& # 39;,'您确定要退出吗?')if ret:self . root . destroy()if _ _ name _ _ = = & # 39;_ _ main _ _ & # 39:a=APP()

五.总结

这次用Tkinter开发一个班级点名程序,可以进行点名和抽签……代码不到200行,程序简单实用,有以下六大亮点:

1.两种模式:

顺序点名随机点名

2.自动标识符列表

3.支持手工导入人员列表。

4.列表导入验证

5.名称显示位置的自动校正

6.最多显示五个大字

本文来自网络,不代表本站立场。转载请注明出处: https://www.djladysyren.com/a-138936.html
1
上一篇gpa4.0 gpa低于3申请出国读研
下一篇 山西省工商行政管理局网上年检系统

为您推荐

联系我们

联系我们

186 2726 9593

在线咨询: QQ交谈

邮箱: 120632399@qq.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

返回顶部