Skip to content

Commit

Permalink
Add widget to browse directory. Refs #6555.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Feb 12, 2013
1 parent 8c5698f commit edaa839
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,18 @@ def get_state(self):
Returns an object with the state of the interface
"""
return NotImplemented


def dir_browse_dialog(self):
"""
Pop up a directory dialog box.
@param data_type: string used to filter the files
@param title: string to use as title
@param multi: multiselection is enabled if True
"""
dirname = str(QtGui.QFileDialog.getExistingDirectory(self, "Select Directory"))

return dirname

def data_browse_dialog(self, data_type=None, title=None, multi=False):
"""
Pop up a file dialog box.
Expand Down

0 comments on commit edaa839

Please sign in to comment.