基于python的大学学生信息管理系统
学习资料管理系统防止信息过载 #生活技巧# #组织技巧# #学习资料管理系统#
from tkinter import *
from tkinter import ttk
from tkinter import messagebox # 导入提示窗口包
from connect_mysql import Mysql_conn
from dLink import DouLink, Node
def run_nn():
# 设置窗口大小
def center_window(root, width, height):
screenwidth = root.winfo_screenwidth()
screenheight = root.winfo_screenheight()
size = '%dx%d+%d+%d' % (width, height, (screenwidth - width) / 2, (screenheight - height) / 2)
root.geometry(size)
class GUI:
"""给每个组件都命名是为了以后迭代方便"""
def __init__(self, root):
# 创建双向链表
self.dl = DouLink()
root.title('学生信息管理系统 ')
# 设置窗口大小
center_window(root, 800, 600)
root.maxsize(1200, 800)
root.minsize(300, 240)
root.iconbitmap('1.png')
# 添加学员
upload_label_1 = ttk.Label(root, text='姓名').grid(row=0, column=1)
upload_label_2 = ttk.Label(root, text='年龄').grid(row=1, column=1)
upload_label_3 = ttk.Label(root, text='电话号码').grid(row=2, column=1)
upload_label_4 = ttk.Label(root, text='入学日期').grid(row=3, column=1)
upload_label_5 = ttk.Label(root, text='邮箱').grid(row=4, column=1)
upload_entry_1 = ttk.Entry(root)
upload_entry_2 = ttk.Entry(root)
upload_entry_3 = ttk.Entry(root)
upload_entry_4 = ttk.Entry(root)
upload_entry_5 = ttk.Entry(root)
upload_entry_1.grid(row=0, column=2)
upload_entry_2.grid(row=1, column=2)
upload_entry_3.grid(row=2, column=2)
upload_entry_4.grid(row=3, column=2)
upload_entry_5.grid(row=4, column=2)
upload_button_1 = ttk.Button(root, text="提交信息", command=lambda: upload_event()).grid(row=6, column=2)
# 修改信息
update_label_1 = ttk.Label(root, text='需更新学号').grid(row=0, column=3)
update_label_2 = ttk.Label(root, text='姓名').grid(row=1, column=3)
update_label_3 = ttk.Label(root, text='年龄').grid(row=2, column=3)
update_label_4 = ttk.Label(root, text='电话号码').grid(row=3, column=3)
update_label_5 = ttk.Label(root, text='入学日期').grid(row=4, column=3)
update_label_6 = ttk.Label(root, text='邮箱').grid(row=5, column=3)
update_entry_1 = ttk.Entry(root)
update_entry_2 = ttk.Entry(root)
update_entry_3 = ttk.Entry(root)
update_entry_4 = ttk.Entry(root)
update_entry_5 = ttk.Entry(root)
update_entry_6 = ttk.Entry(root)
update_entry_1.grid(row=0, column=4)
update_entry_2.grid(row=1, column=4)
update_entry_3.grid(row=2, column=4)
update_entry_4.grid(row=3, column=4)
update_entry_5.grid(row=4, column=4)
update_entry_6.grid(row=5, column=4)
update_button = ttk.Button(root, text='更新信息',command=lambda: update_event()).grid(row=6, column=4)
# 查找学员
search_listbox = Listbox(root, height=3)
for item in ['按学号查找', '按姓名查找', '按年龄查找']:
search_listbox.insert(END, item)
search_listbox.grid(row=0, column=6, rowspan=3)
search_label = ttk.Label(root, text='查找参数').grid(row=3, column=5)
search_entry = ttk.Entry(root)
search_entry.grid(row=3, column=6)
search_button = ttk.Button(root, text='查找', command=lambda: search_event()).grid(row=5, column=6)
delete_button = ttk.Button(root, text='删除该学员', command=lambda: delete_event()).grid(row=6, column=6)
# 排序
sort_button_1 = ttk.Button(root, text='按学号排序', command=lambda: sort_event(1)).grid(row=1, column=7)
sort_button_1 = ttk.Button(root, text='按姓名排序', command=lambda: sort_event(2)).grid(row=2, column=7)
s
网址:基于python的大学学生信息管理系统 https://www.yuejiaxmz.com/news/view/786667
相关内容
学生信息管理系统 python实现(含全部代码)基于Python的学生健康数据分析与可视化系统计算机毕设
基于Python实现智能绿化管理系统计算机毕设
基于python的城市道路智慧交通管理系统的设计与实现
python毕设基于Java的大学生电子产品维修系统的设计与实现u17h8yg2程序+论文
python基于大数据的食物推荐系统
python毕设基于微信小程序的美食推荐系统06e87程序+论文
【开题报告+文档+源码】基于Python心理健康管理系统
学生宿舍管理系统毕业设计(python)
基于python的酒店管理系统