#!/usr/bin/python3 def connect_gui(app): app.main_window.openFile.triggered.connect(app.file_actions.open_files) app.main_window.saveFile.triggered.connect(app.file_actions.save_current_file) app.main_window.openFileTabs.tabCloseRequested.connect(app.file_actions.close_current_file) app.QTMainWindow.closeEvent = app.utils.on_close app.main_window.menuSettings.triggered.connect(app.utils.open_settings)