import sys
from PySide6 import QtWidgets, QtCore, QtGui
from PySide6.QtCore import Qt, QRect
from PySide6.QtGui import QColor, QEnterEvent
from PySide6.QtWidgets import QApplication, QDialog, QMainWindow, QGraphicsDropShadowEffect
import yiqi_ui
class MainWindow(QMainWindow,yiqi_ui.Ui_MainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.win = yiqi_ui.Ui_MainWindow()
self.win.setupUi(self)
self.setWindowFlag(Qt.FramelessWindowHint)
self.setAttribute(Qt.WA_TranslucentBackground)
self.show()
if __name__ == '__main__':
app = QApplication(sys.argv) # 初始化
win = MainWindow() # 初始化界面并展示
win.show()
app.exec()