mirror of
https://github.com/jlengrand/Ivolution.git
synced 2026-03-10 08:21:18 +00:00
List filling works. Got to change their color now
This commit is contained in:
@@ -64,8 +64,12 @@ class FacemovieThread(threading.Thread, Observable, Observer):
|
||||
|
||||
#self.console_logger.debug(message)
|
||||
self.my_logger.debug(message)
|
||||
# notify gui about small updates
|
||||
self.notify(["Lib", ["STATUS", message[0], message[1]]])
|
||||
if message[0] == "FILEADD":
|
||||
print "got it !"
|
||||
self.notify(["Interface", [message[0], message[1], 0]])
|
||||
else:
|
||||
# notify gui about small updates
|
||||
self.notify(["Interface", ["STATUS", message[0], message[1]]])
|
||||
|
||||
# checking for fatal error
|
||||
if message[0] == "Error":
|
||||
|
||||
@@ -121,6 +121,7 @@ class FaceMovie(object, Observable, Observer):
|
||||
|
||||
# populating guys
|
||||
self.guys.append(a_guy)
|
||||
self.notify(["Application", ["FILEADD", guy_name]])
|
||||
except:
|
||||
self.console_logger.info("Skipping %s. Not an image file" % (guy_source))
|
||||
self.my_logger.info("Skipping %s. Not an image file" % (guy_source))
|
||||
|
||||
@@ -294,6 +294,12 @@ class IvolutionWindow(IvolutionTemplate, Observer, Observable):
|
||||
wx.MutexGuiEnter() # to avoid thread problems
|
||||
self.statusbar.SetStatusText(message[1], 1)
|
||||
wx.MutexGuiLeave()
|
||||
elif message[0] == "FILEADD":
|
||||
item = wx.ListItem()
|
||||
item.SetText(message[1])
|
||||
wx.MutexGuiEnter() # to avoid thread problems
|
||||
self.filelist.InsertItem(item)
|
||||
wx.MutexGuiLeave()
|
||||
|
||||
elif len(message) > 1: # system commands shall be ignored
|
||||
self.console_logger.debug("Unrecognized command")
|
||||
|
||||
Reference in New Issue
Block a user