I’m writing a module where I need to load a csv file. I am currently using ctkPathLineEdit
to open a file selection dialog box. Is there a way to modify ctkPathLineEdit
to only accept files with specific file extensions?
Thannks, this was all I needed.
self.dataframePath = ctk.ctkPathLineEdit()
self.dataframePath.settingKey = 'measurementFile'
self.dataframePath.filters = ctk.ctkPathLineEdit.Files
self.dataframePath.nameFilters = ['*.csv']