當(dāng)我嘗試用pyqt4應(yīng)用程序創(chuàng)建一個(gè)onefile exe時(shí),我有4個(gè)腳本組成了整個(gè)程序。我已經(jīng)創(chuàng)建了一個(gè)exe,但是當(dāng)我執(zhí)行文件時(shí),我從追溯中獲取了file "<string>" line 172 in <module>file "<string>" line 33 in __init__AttributeError: 'QAction' object has no attribute 'activated'不知道我可能會(huì)缺少什么。我遵循了pyinstaller文檔。任何幫助都將受到高度贊賞。這些線路已激活self.ui.actionExport_Database.activated.connect(self.dbexport)self.ui.actionExport_Entire_Database.activated.connect(self.dbexportall)self.ui.actionClose.activated.connect(self.close)我用于exe的命令是python pyinstaller.py --onefile yourprogram.pywpython pyinstaller.py --onefile your-program.spec不知道我是否應(yīng)該等到第二個(gè)命令使用onefile選項(xiàng)。
Pyinstaller PyQt4 QAction錯(cuò)誤
慕的地6264312
2021-03-30 04:40:00