diff --git a/ivolution/gui_wx/SettingsWindow.py b/ivolution/gui_wx/SettingsWindow.py index e499d6f..3e82608 100644 --- a/ivolution/gui_wx/SettingsWindow.py +++ b/ivolution/gui_wx/SettingsWindow.py @@ -2,7 +2,7 @@ """ .. module:: SettingsWindow :platform: Unix, Windows, Mac - :synopsis: Settings Window of the Ivolution GUI designed to be supported by all platforms. + :synopsis: Settings Window of the Ivolution GUI. .. moduleauthor:: Julien Lengrand-Lambert @@ -11,11 +11,6 @@ import wx import wx.lib.newevent -import sys -import os -import logging -import webbrowser - from .. import get_data # used to load images and files from SettingsTemplate import SettingsTemplate @@ -31,31 +26,35 @@ class SettingsWindow(SettingsTemplate): """ SettingsTemplate.__init__(self, parent) # TODO : Set icon - #self.SetIcon(wx.Icon('ivolution/data/media/icons/spanner_48.ico', wx.BITMAP_TYPE_ICO)) # Sets icon - + # Sets icon + #self.SetIcon(wx.Icon('ivolution/data/media/icons/spanner_48.ico', + # wx.BITMAP_TYPE_ICO)) # Defining settings value self.output_folder = parent.out_fo - self.file_name = "Ivolution" + self.video_name = "Ivolution" + self.type = "" + self.mode = "" + self.speed = "" + self.sort = "" - - - - - self.outputLocationLabel.SetLabel(self.output_folder) # setting default value from main window + # setting default value from main window + self.outputLocationLabel.SetLabel(self.output_folder) # Virtual event handlers, overide them in your derived class - def on_output( self, event ): - pass - # default_dir = "~/Pictures" - # self.inputdialog = wx.DirDialog(self, "Please choose your input directory", style=1, defaultPath=default_dir) + def on_output(self, event): + self.outputdialog = wx.DirDialog(self, + "Please choose your output directory", + style=1, + defaultPath=self.output_folder) - # if self.inputdialog.ShowModal() == wx.ID_OK: - # self.inputtextbox.SetLabel(self.inputdialog.GetPath()) - # self.inputdialog.Destroy() + if self.outputdialog.ShowModal() == wx.ID_OK: + self.output_folder = self.outputdialog.GetPath() + self.outputLocationLabel.SetLabel(self.output_folder) + self.outputdialog.Destroy() - def on_cancel( self, event ): + def on_cancel(self, event): self.Close(True) # Close the frame. - def on_save( self, event ): - event.Skip() \ No newline at end of file + def on_save(self, event): + event.Skip()