By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,862 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

Creating folder browse dialogue gui

P: 1
I have completed a script which opens various txt files within a folder path and does calculations on them, currently being set for example:

path = "./files"

is there a simple solution to grab a folder path using a gui function similar to that of the browse for folder function in .net

this will than set the path to what the user has chosen

Thanks
Dec 18 '08 #1
Share this Question
Share on Google+
1 Reply


ChrisWang
P: 9
Hi,

I think wxPython can help you to develop GUI function, including the input/output.

You can use wx.TextCtrl to get the input from the user, and then use os.listdir('PATH') to enumerate the files.
Note: PATH is the input got from user.

I can give you a sample to use wxPython
wxpython TextCtrl Basic Formatting - Python

and the help for TextCtrl
wx.TextCtrl
Dec 18 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.