Python案例:GUI版的用户注册信息管理系统
Python案例:GUI版的用户注册信息管理系统 一、源代码 # gui_user_management.py try: # 导入模块 from tkinter import * from tkinter.messagebox import * import sqlite3 from traceback import print_tb from datetime import datetime # 创建并设置主窗口 root = Tk() root.resizable(False, False) systitle = '用户注册信息管理系统' root.title(systitle) curWidth, curHeight = 500, 300 scnWidth, scnHeight = root.maxsize() geocnf = '%dx%d+%d+%d' % (curWidth, curHeight, (scnWidth - curWidth) / 2, (scnHeight - curHeight) / 2) root.geometry(geocnf) # 设置主窗口背景 pic = PhotoImage(file='background.gif') label1 = Label(image=pic) label1.place(x=0, y=0) # 功能界面