main.py 文件源码

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

项目:Recruit 作者: Weiyanyu 项目源码 文件源码
def showImage(self): 
        #????????????????? main thread is not in main loop ????????main loop???????????????????????????UI???????????
        try:
            image = GenImage(os.getcwd() + '/resource/%s/' % (self.type))
            image.generateImage('position_for_image.csv','1.png','bar')             
            image.generateImage('salary_for_image.csv','2.png','pie')
        except:
            self.networkError()

        PixMapSalary = QtGui.QPixmap(os.getcwd() + '/resource/%s/images/1.png' % (self.type)).scaled(400,600)
        self.SalaryImage.setPixmap(PixMapSalary)
        PixMapPosition = QtGui.QPixmap(os.getcwd() + '/resource/%s/images/2.png' % (self.type)).scaled(500,500)
        self.PositionImage.setPixmap(PixMapPosition)

        del image
        gc.collect()

        #??????
        self.showStaff()

    #????????????????????????????webbrowser???
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号