sampoorna_gui_old.py 文件源码

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

项目:smartschool 作者: asifkodur 项目源码 文件源码
def update_display(self, msg):
        """
        Receives data from thread and updates the display
        """
        data = msg.data

        self.label_satus.SetLabel("Status: "+str(data))
        if data=="Successfully Logged in" or data=="Aborted" :
            self.text_ctrl_report.Value="\n"+data+self.text_ctrl_report.Value

        if data.find("Fetching Data from remote server")!=-1:
            self.text_ctrl_report.Value="\n        Preparations made for download"+self.text_ctrl_report.Value
        if data.find("Processeing Data")!=-1:
            self.text_ctrl_report.Value="\n        Downloaded data for the class"+self.text_ctrl_report.Value

        if data.find("Writing to Local Database")!=-1:
            self.text_ctrl_report.Value="\n        Data Processing Completed for the class"+self.text_ctrl_report.Value

        if data.find("Updation Completed ")!=-1:
            self.text_ctrl_report.Value="\n        Database Updated for the class"  +self.text_ctrl_report.Value  
        #self.list_ctrl_1.Append(str(data))
        if msg.data=="Invalid Username Password combination":
            self.button_finished.SetLabel("Close")
            self.label_1.SetForegroundColour(wx.Colour(204, 50, 50))
            self.text_ctrl_report.Value=msg.data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号