def on_button_clicked(self): global path msgBox = QtWidgets.QMessageBox() buttonReply = msgBox.question(self, 'JaSONx', "Change excel_files path?", QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No, QtWidgets.QMessageBox.No) if buttonReply == QtWidgets.QMessageBox.Yes: response = configuration.change_excel_path(path) if(response == True): msgBox.about(self, "Change excel_files path", "Changed path!") else: msgBox.critical(self, "Change excel_files path", "Error") self.close()
def change_path_excel_function(self): button_reply = self.message_box.question( self, 'JasonX', "Change excel_files path?", QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No, QtWidgets.QMessageBox.No) if button_reply == QtWidgets.QMessageBox.Yes: response = configuration.change_excel_path( self.folder_path_tree_view) if (response == True): logging.info("excel path changed") self.message_box.about(self, "Change excel_files path", "Changed path!") else: logging.info("excel path change failed") self.message_box.critical(self, "Change excel_files path", "Error") self.close()
def on_button_clicked(self): global path configuration.change_excel_path(path) self.close()