You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
649 B

5 months ago
import tkinter.font as tkFont
import tkinter
from tkinter import *
from tkinter import ttk, messagebox
import pymysql
class BaseWindow(Frame):
def __init__(self, master, attr):
super().__init__(master)
self.attr = attr
self.master = master
self.font_style = tkFont.Font(family="Lucida Grande", size=20)
self.button_font = tkFont.Font(family="Lucida Grande", size=10)
self.conn = pymysql.connect(user="root", password="Wyz010810", database="SCT", host="127.0.0.1", port=3306)
# self.conn = pymysql.connect(user="root", password="123123", database="stu_sys", host="127.0.0.1", port=3306)