animeWatch.py 文件源码

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

项目:AnimeWatch 作者: kanishka-linux 项目源码 文件源码
def __init__(self,parent=None):
        global name,home
        QtWidgets.QSystemTrayIcon.__init__(self, parent)
        icon_img = os.path.join(home,'src','tray.png')
        self.right_menu = RightClickMenuIndicator()
        self.setContextMenu(self.right_menu)

        self.activated.connect(self.onTrayIconActivated)
        self.p = QtGui.QPixmap(24,24)
        self.p.fill(QtGui.QColor("transparent"))
        painter = QtGui.QPainter(self.p)
        if os.path.exists(icon_img):
            self.setIcon(QtGui.QIcon(icon_img))
        else:
            self.setIcon(QtGui.QIcon(""))
        self.full_scr = 1
        del painter
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号