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

Access to subdirectories in a file dialog box must not be allowed

P: 1
Hi all,
I am using pyside package ,here is the sample snippet

Expand|Select|Wrap|Line Numbers
  1. dialogBox=QtGui.QFileDialog(path)
  2. dialogBox.setFileMode(QtGui.QFileDialog.DirectoryOnly)
  3. if dialogBox.exec_():
  4.             fileName = dialogBox.selectedFiles()
This works perfectly fine where I can choose the required Directory, but the problem now is,the user should not have access to sub directories of those directories AND he should not have access to change to different paths from file dialog box.
Any help is appreciated,

Thanks in advance
Jun 5 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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