课程设计牙科诊所接诊与治疗管理系统
立即下载
资源介绍:
未学弟学妹们造福
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'f:\datasheji\牙科UI\牙科2\Admin.ui'
#
# Created by: PyQt5 UI code generator 5.15.10
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
import pymysql
from PyQt5 import QtCore, QtWidgets
Host='127.0.0.1' # 连接地址
User='admin' # 用户
Password=str('admin123456') # 密码, # 数据库密码,记得修改为自己本机的密码
DATABASE = 'dentistry_db'
class Ui_AdminWindow(object):
def setupUi(self, AdminWindow):
AdminWindow.setObjectName("AdminWindow")
AdminWindow.resize(1157, 815)
self.centralwidget = QtWidgets.QWidget(AdminWindow)
self.centralwidget.setObjectName("centralwidget")
self.frame = QtWidgets.QFrame(self.centralwidget)
self.frame.setEnabled(True)
self.frame.setGeometry(QtCore.QRect(0, 0, 1141, 806))
self.frame.setMinimumSize(QtCore.QSize(1111, 801))
self.frame.setStyleSheet("#frame{\n"
"background-color: rgb(255, 255, 255);\n"
"border-top-right-radius:20px;\n"
"}\n"
"")
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.verticalLayout = QtWidgets.QVBoxLayout(self.frame)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName("verticalLayout")
self.frame_2 = QtWidgets.QFrame(self.frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
self.frame_2.setSizePolicy(sizePolicy)
self.frame_2.setMinimumSize(QtCore.QSize(1111, 38))
self.frame_2.setMaximumSize(QtCore.QSize(1111, 38))
self.frame_2.setStyleSheet("background-color: rgb(255, 255, 255);")
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_2.setObjectName("frame_2")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.frame_4 = QtWidgets.QFrame(self.frame_2)
self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_4.setObjectName("frame_4")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frame_4)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label = QtWidgets.QLabel(self.frame_4)
self.label.setStyleSheet("\n"
"font: 75 10pt \"Arial\";")
self.label.setObjectName("label")
self.horizontalLayout_3.addWidget(self.label)
self.horizontalLayout.addWidget(self.frame_4)
self.frame_5 = QtWidgets.QFrame(self.frame_2)
self.frame_5.setStyleSheet("QPushButton{\n"
" font: 10pt \"黑体\";\n"
"}\n"
"QPushButton:hover{\n"
"padding-bottom:5px;\n"
"}")
self.frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_5.setObjectName("frame_5")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_5)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.pushButton_logout = QtWidgets.QPushButton(self.frame_5)
self.pushButton_logout.setObjectName("pushButton_logout")
self.horizontalLayout_2.addWidget(self.pushButton_logout)
self.pushButton_3 = QtWidgets.QPushButton(self.frame_5)
self.pushButton_3.setObjectName("pushButton_3")
self.horizontalLayout_2.addWidget(self.pushButton_3)
self.pushButton_close = QtWidgets.QPushButton(self.frame_5)
self.pushButton_close.setObjectName("pushButton_close")
self.horizontalLayout_2.addWidget(self.pushButton_close)
self.horizontalLayout.addWidget(self.frame_5, 0, QtCore.Qt.AlignRight)
self.verticalLayout.addWidget(self.frame_2)
self.frame_3 = QtWidgets.QFrame(self.frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(20)
sizePolicy.setHeightForWidth(self.frame_3.sizePolicy().hasHeightForWidth())
self.frame_3.setSizePolicy(sizePolicy)
self.frame_3.setMinimumSize(QtCore.QSize(1109, 761))
self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_3.setObjectName("frame_3")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.frame_3)
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_4.setSpacing(0)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.frame_6 = QtWidgets.QFrame(self.frame_3)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(4)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame_6.sizePolicy().hasHeightForWidth())
self.frame_6.setSizePolicy(sizePolicy)
self.frame_6.setStyleSheet("#frame_6{\n"
" \n"
" background-color: rgb(85, 0, 127);\n"
" border-bottom-left-radius:20px;\n"
" border-top-right-radius:20px;\n"
"}\n"
"QPushButton{\n"
" \n"
" font: 18pt \"黑体\";\n"
" color: rgb(255, 255, 255);\n"
" border:none;\n"
" background-color: rgb(85, 0, 127);\n"
"}\n"
"QPushButton:pressed{\n"
" padding-top:5px;\n"
" padding-left:5px;\n"
"}\n"
"QPushButton:hover{\n"
" color: rgb(170, 170, 170);\n"
"}")
self.frame_6.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_6.setObjectName("frame_6")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame_6)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.pushButton_home = QtWidgets.QPushButton(self.frame_6)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(5)
sizePolicy.setHeightForWidth(self.pushButton_home.sizePolicy().hasHeightForWidth())
self.pushButton_home.setSizePolicy(sizePolicy)
self.pushButton_home.setObjectName("pushButton_home")
self.verticalLayout_2.addWidget(self.pushButton_home)
self.pushButton_pathient = QtWidgets.QPushButton(self.frame_6)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(5)
sizePolicy.setHeightForWidth(self.pushButton_pathient.sizePolicy().hasHeightForWidth())
self.pushButton_pathient.setSizePolicy(sizePolicy)
self.pushButton_pathient.setObjectName("pushButton_pathient")
self.verticalLayout_2.addWidget(self.pushButton_pathient)
self.pushButton_doctor = QtWidgets.QPushButton(self.frame_6)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy