1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| import sys from PySide2.QtWidgets import * from PySide2.QtCore import *
from BlurWindow.blurWindow import GlobalBlur
class MainWindow(QWidget): def __init__(self): super(MainWindow, self).__init__() self.setAttribute(Qt.WA_TranslucentBackground) self.resize(500, 400)
GlobalBlur(self.winId(),Dark=True,QWidget=self)
self.setStyleSheet("background-color: rgba(0, 0, 0, 0)")
if __name__ == '__main__': app = QApplication(sys.argv) mw = MainWindow() mw.show() sys.exit(app.exec_())
|