1

I have a software that lets the user choose the database location from the traits.api File trait as shown below:

class DbPreferencesHelper(PreferencesHelper): dbLocation = File()

class DbPreferencesPane(PreferencesPane): view = View(Item('dbLocation', label='Location of database'))

The user can browse through directories and choose a file. I would like to restrict the directory the user can select a file from. Is there any way I can do that? If not, could I do it using pyface.api FileDialog?

Thank you.

Antique
  • 31
  • 2
  • No there is not a keyword to do that. But it would not be that hard if you are willing to do some programming. – aestrivex Nov 06 '15 at 18:04
  • I am willing to do some programming, but I'm not sure how to do it. Were are the default key bindings strings defined? – Antique Dec 16 '15 at 20:40

0 Answers0