def showDescription(self): descriptionDlg = EnterText.EnterText() descriptionDlg.buttonBox.removeButton(descriptionDlg.buttonBox.buttons()[1]) descriptionDlg.setModal(True) self.core.parentWindow(descriptionDlg) descriptionDlg.setWindowTitle("Enter description") descriptionDlg.l_info.setText("Description:") descriptionDlg.te_text.setPlainText(self.description) descriptionDlg.exec_() self.description = descriptionDlg.te_text.toPlainText()
def showDescription(self): descriptionDlg = EnterText.EnterText() descriptionDlg.buttonBox.removeButton(descriptionDlg.buttonBox.buttons()[1]) descriptionDlg.setModal(True) self.core.parentWindow(descriptionDlg) descriptionDlg.setWindowTitle("Enter description") descriptionDlg.l_info.setText("Description:") descriptionDlg.te_text.setPlainText(self.description) descriptionDlg.exec_() self.description = descriptionDlg.te_text.toPlainText() if self.description == "": self.b_description.setStyleSheet(self.styleMissing) else: self.b_description.setStyleSheet(self.styleExists) self.saveStatesToScene()
def duplicate_file_func(file_name): # Get name for duplicate file and create EnterText.open_enter_text_window(win_pick_file.x, win_pick_file.y, db_dict, settings, 'duplicate', fill_text=file_name, file_prefix=file_prefix) win_pick_file.hide()
def download_player_db_btn_func(): settings['prev_window'] = 'files_menu' settings['file_type'] = 'download_player_db' EnterText.open_enter_text_window(win_files.x, win_files.y, db_dict, settings, 'download') win_files.hide()
def rename_file_func(file_name): # Get new name EnterText.open_enter_text_window(win_pick_file.x, win_pick_file.y, db_dict, settings, 'rename', fill_text=file_name, file_prefix=file_prefix) settings['file_changes'] = True win_pick_file.hide()