From 0567d84756e53fac8a37f84b5ac8a25c784f17df Mon Sep 17 00:00:00 2001 From: Julien Lengrand-Lambert Date: Wed, 29 Aug 2012 13:31:12 +0200 Subject: [PATCH] Also adds red color if no face is found --- ivolution/gui_wx/IvolutionWindow.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ivolution/gui_wx/IvolutionWindow.py b/ivolution/gui_wx/IvolutionWindow.py index 98e25a0..ce466f4 100644 --- a/ivolution/gui_wx/IvolutionWindow.py +++ b/ivolution/gui_wx/IvolutionWindow.py @@ -303,14 +303,16 @@ class IvolutionWindow(IvolutionTemplate, Observer, Observable): elif message[0] == "FILEDONE": for i in range(self.filelist.GetItemCount()): if message[1] == self.filelist.GetItemText(i): - print "FUCKKKKKK" + if message[2] == 1: + color = "green" + else: + color = "red" wx.MutexGuiEnter() # to avoid thread problems - #self.filelist.GetItem(i).SetBackgroundColour('green'), 1) - self.filelist.SetItemTextColour(i, "green") + self.filelist.SetItemTextColour(i, color) wx.MutexGuiLeave() elif len(message) > 1: # system commands shall be ignored self.console_logger.debug("Unrecognized command") self.my_logger.debug("Unrecognized command") self.console_logger.debug(message) - self.my_logger.debug(message) \ No newline at end of file + self.my_logger.debug(message)