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

Is there any control in wx.python which is equivalent to FileUpload?

P: 7
I need to open a file upload window on a button click. From that window I must be able to select excel files. Also I want to get the filepath. Can anybody help with this.
Feb 4 '11 #1
Share this Question
Share on Google+
1 Reply


bvdet
Expert Mod 2.5K+
P: 2,851
wx.FileDialog would be the obvious choice. Use style wx.MULTIPLE with wildcard="Excel files (*.xls)|*.xls"

Use dialog methods GetFileName(), GetDirectory(), or GetPath() as needed.
Feb 5 '11 #2

Post your reply

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