2021
03-09
03-09
PyQt5 实现给无边框widget窗口添加背景图片
我就废话不多说了,大家还是直接看代码吧~#!/usr/bin/envpython#-*-coding:utf-8-*-importsysfromPyQt5.QtWidgetsimportQApplication,QWidgetfromPyQt5.QtCoreimportQtfromPyQt5.QtGuiimportQPalette,QBrush,QPixmapclassNoBorderWindow(QWidget):def__init__(self):super().__init__()self.window_UI()self.drawn()defwindow_UI(self):self.resize(950,200)self.setWindowFl...
继续阅读 >