widgets.py 文件源码

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

项目:BigBrotherBot-For-UrT43 作者: ptitbigorneau 项目源码 文件源码
def minimize_in_system_tray(self):
        """
        Minimize B3 in system tray icon
        """
        if b3.getPlatform() != 'linux':
            # do not use system tray on linux since it looks bad on Ubuntu
            # which is the mainly used Linux client distribution (they can live without it)
            self.hide()
            if not self.system_tray_minimized:
                self.system_tray_minimized = True
                self.system_tray.showMessage("B3 is still running!",
                                             self.system_tray_balloon[b3.getPlatform()],
                                             QSystemTrayIcon.Information, 20000)

    ############################################# ACTION HANDLERS ######################################################
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号