I am trying to build a GUI with PyQt5. The relevant part of the code is shown below. So i created a QTextEdit and a button. The Path to the file is shown on the QTextEdit an