mirror of
https://github.com/jlengrand/Ivolution.git
synced 2026-03-10 08:21:18 +00:00
Adds button for filechoosing. Later change
This commit is contained in:
@@ -81,7 +81,8 @@ class IvolutionWindow(wx.Frame):
|
||||
# Creates input box, allowing to choose the input folder
|
||||
inputbox = wx.FlexGridSizer(2, 1, 0, 0)
|
||||
inputtext = wx.StaticText(self.panel, label="Choose your input folder:")
|
||||
inputchooser = wx.StaticText(self.panel, label="input folder")
|
||||
inputchooser = wx.Button(self.panel, label="~/Pictures")
|
||||
#inputchooser = wx.StaticText(self.panel, label="input folder")
|
||||
#inputchooser = wx.FileDialog(self.panel, message="Open an Image...", defaultDir=os.getcwd(), defaultFile="", style=wx.OPEN)
|
||||
#inputchooser = wx.DirDialog(self.panel, "Please choose your project directory:", style=1 ,defaultPath=os.getcwd())
|
||||
|
||||
@@ -90,7 +91,10 @@ class IvolutionWindow(wx.Frame):
|
||||
# Creates output box, allowing to choose the output folder
|
||||
outputbox = wx.FlexGridSizer(2, 1, 0, 0)
|
||||
outputtext = wx.StaticText(self.panel, label="Choose your output folder:")
|
||||
outputchooser = wx.StaticText(self.panel, label="output folder")
|
||||
outputchooser = wx.Button(self.panel, label="~/Videos")
|
||||
#outputchooser = wx.StaticText(self.panel, label="output folder")
|
||||
#outputchooser = wx.DirDialog(self.panel, "Choose a directory:",style=wx.DD_DEFAULT_STYLE | wx.DD_NEW_DIR_BUTTON)
|
||||
|
||||
outputbox.AddMany([outputtext, outputchooser])
|
||||
|
||||
requiredbox.AddMany([title, inputbox, outputbox])
|
||||
|
||||
8
test/dirdialogtest.py
Normal file
8
test/dirdialogtest.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import wx
|
||||
|
||||
|
||||
app = wx.PySimpleApp()
|
||||
dialog = wx.DirDialog(None, "Choose a directory:",style=wx.DD_DEFAULT_STYLE | wx.DD_NEW_DIR_BUTTON)
|
||||
if dialog.ShowModal() == wx.ID_OK:
|
||||
print dialog.GetPath()
|
||||
dialog.Destroy()
|
||||
Reference in New Issue
Block a user