I am working with some code that uses Traits UI to show a dialog from which the user is able to select two files:
class Files(HasTraits):
filename_1 = File(exists=True)
filename_2 = File(exists=True)
traits_ui = View(
'filename_1', 'filename_2',
title = 'Select Geometry Files',
buttons = ['OK', 'Cancel']
)
files = Files()
ui = files.edit_traits(kind='modal')
When editing the filename_1 or filename_2 values, a file chooser dialog is displayed with the title ‘Save As’. I’ve been asked to change the title to ‘Open’ or even ‘Select File’. Unfortunately, I can’t seem to find out how I can change this. Can anyone help?