notification.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:pyside_notification 作者: GrandLoong 项目源码 文件源码
def __init__(self, mssg=''):
        super(Notification, self).__init__()
        MSSG = mssg
        self.desktop = QtGui.QDesktopWidget()
        self.setWindowFlags(QtCore.Qt.FramelessWindowHint | QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.SubWindow)
        self.setupUi(self)
        self.app_dir = os.path.dirname(__file__)
        self.f = 1.0
        self.x = self.desktop.availableGeometry().width()
        self.workThread = WorkThread()
        self.set_transparency(True)
        self.label_icon.setIcon(QtGui.QIcon(self.add_icon('push-notification.png')))
        self.createNotification(MSSG)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号