Select only file extensions with ctkPathLineEdit

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?

You can specify name filters in the nameFilters property of the ctkPathLineEdit widget:

Thannks, this was all I needed.

self.dataframePath = ctk.ctkPathLineEdit()
self.dataframePath.settingKey = 'measurementFile'
self.dataframePath.filters = ctk.ctkPathLineEdit.Files
self.dataframePath.nameFilters = ['*.csv']