AttributeError: 'Ui_MainWindow' object has no attribute 'selectButton'
时间: 2023-10-04 07:14:17 浏览: 260
mainwindow.ui
AttributeError: 'Ui_MainWindow' object has no attribute 'selectButton'这个错误通常表示在UI文件中没有名为'selectButton'的控件。根据引用中的描述,可能是因为你在UI文件中误用了一个不可编辑的按钮,而正确的控件应该是'plainTextEdit'。请确保在UI文件中使用了正确的控件名称来解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [PyQt导入UI文件运行时报错“AttributeError: ‘PySide2.QtWidgets.QMainWindow‘ object has no attribute ...](https://blog.csdn.net/GoodmanLee/article/details/114175749)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [# Pycharm关于AttributeError: ‘DataFrame’ object has no attribute ‘score’的错误](https://download.csdn.net/download/weixin_38720756/13749766)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [AttributeError: ‘PySide2.QtWidgets.QMainWindow’ object has no attribute ‘button’”如何解决](https://blog.csdn.net/m0_71772987/article/details/125493815)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文