def on_open(self):
filename, filter = QtWidgets.QFileDialog.getOpenFileName(self, '<STR_LIT>')<EOL>if filename:<EOL><INDENT>self.open_file(filename)<EOL><DEDENT>self.actionRun.setEnabled(True)<EOL>self.actionConfigure_run.setEnabled(True)<EOL>
Shows an open file dialog and open the file if the dialog was
accepted.