From 39c857617d3ef46fe9501736d84d0af7c1b4c5ad Mon Sep 17 00:00:00 2001 From: Julien Lengrand-Lambert Date: Tue, 21 Aug 2012 08:42:46 +0200 Subject: [PATCH] Trying to get set_parameters combobox working --- ivolution/gui_wx/IvolutionWindow.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ivolution/gui_wx/IvolutionWindow.py b/ivolution/gui_wx/IvolutionWindow.py index 83f4eb7..75595f4 100644 --- a/ivolution/gui_wx/IvolutionWindow.py +++ b/ivolution/gui_wx/IvolutionWindow.py @@ -148,10 +148,10 @@ class IvolutionWindow(wx.Frame): typefacebox = wx.FlexGridSizer(2, 1, 0, 0) typefacetext = wx.StaticText(self.panel, label="Type of face:") types = ['frontal_face', 'profile_face'] - typefacelist = wx.ComboBox(self.panel, choices=types, style=wx.CB_READONLY) - typefacelist.SetValue(types[0]) + self.typefacelist = wx.ComboBox(self.panel, choices=types, style=wx.CB_READONLY) + self.typefacelist.SetValue(types[0]) - typefacebox.AddMany([typefacetext, typefacelist]) + typefacebox.AddMany([typefacetext, self.typefacelist]) # Creates the video speed box videospeedbox = wx.FlexGridSizer(2, 1, 0, 0) @@ -330,7 +330,7 @@ class IvolutionWindow(wx.Frame): """ self.in_fo = self.inputchoosertext.GetLabel() + "/" self.out_fo =self.outputchoosertext.GetLabel() + "/" - #self.param = + self.param = self.typefacelist.GetString() #self.speed = # We need and integer between 0 and 2 # Instantiating the face_params object that will be needed by the facemovie