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
评论列表
文章目录