def open_file_orders(): # выбор файла Ордерс
app = QtWidgets.QApplication([])
path_file = QtWidgets.QFileDialog.getOpenFileName(directory=r'C:\Users\tomhu\Desktop', filter="Data Base (*.csv)")[0]
print(path_file)
form.ordersLine.setText(path_file)
print(f"Выбран ордерс путь {path_file}")
print(type(path_file))
form.ordersSelect.clicked.connect(open_file_orders)
<function open_file_orders at 0x000001F933C145E0>