def log_for_user(self): """ if user want file log in any directory """ if self.makelog == 'true': copy_restore("%s/.videomass/%s" % (DIRNAME, self.logname), "%s/%s" % (self.path_log, self.logname))
def updateDisplay(self, msg): """ Received the end thread of the process when the while loop in the thread has finish or if interrupted process """ #File = open("/home/gianluca/Video/preset.log","r") #li = File.readlines() #File.close() if self.status_run == 1: self.OutText.SetDefaultStyle(wx.TextAttr(wx.RED)) self.OutText.AppendText('\n !! Interrupted Process !!\n') else: self.OutText.SetDefaultStyle(wx.TextAttr(wx.BLUE)) self.OutText.AppendText('\n ...Process successfully executed\n') self.button_stop.Enable(False) self.button_close.Enable(True) # if user want file log if self.makelog == 'true': copy_restore("%s/.videomass/%s" % (DIRNAME, self.logname), "%s/%s" % (self.path_log, self.logname))