how to add open file dialog in pyqt5 on button press code example
Example: open file dialog on button click pyqt5
def open(self):
path = QFileDialog.getOpenFileName(self, 'Open a file', '',
'All Files (*.*)')
if path != ('', ''):
print(path[0])