久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<small id='I5SMG'></small><noframes id='I5SMG'>

<i id='I5SMG'><tr id='I5SMG'><dt id='I5SMG'><q id='I5SMG'><span id='I5SMG'><b id='I5SMG'><form id='I5SMG'><ins id='I5SMG'></ins><ul id='I5SMG'></ul><sub id='I5SMG'></sub></form><legend id='I5SMG'></legend><bdo id='I5SMG'><pre id='I5SMG'><center id='I5SMG'></center></pre></bdo></b><th id='I5SMG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='I5SMG'><tfoot id='I5SMG'></tfoot><dl id='I5SMG'><fieldset id='I5SMG'></fieldset></dl></div>
    <bdo id='I5SMG'></bdo><ul id='I5SMG'></ul>

    <legend id='I5SMG'><style id='I5SMG'><dir id='I5SMG'><q id='I5SMG'></q></dir></style></legend>
      <tfoot id='I5SMG'></tfoot>

    1. Pylint 中的模塊“PyQt5.QtWidgets"錯誤中沒有名稱

      No name #39;QApplication#39; in module #39;PyQt5.QtWidgets#39; error in Pylint(Pylint 中的模塊“PyQt5.QtWidgets錯誤中沒有名稱“QApplication)

      <tfoot id='VwsVR'></tfoot>

        <bdo id='VwsVR'></bdo><ul id='VwsVR'></ul>
        1. <i id='VwsVR'><tr id='VwsVR'><dt id='VwsVR'><q id='VwsVR'><span id='VwsVR'><b id='VwsVR'><form id='VwsVR'><ins id='VwsVR'></ins><ul id='VwsVR'></ul><sub id='VwsVR'></sub></form><legend id='VwsVR'></legend><bdo id='VwsVR'><pre id='VwsVR'><center id='VwsVR'></center></pre></bdo></b><th id='VwsVR'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='VwsVR'><tfoot id='VwsVR'></tfoot><dl id='VwsVR'><fieldset id='VwsVR'></fieldset></dl></div>
                <tbody id='VwsVR'></tbody>
            • <small id='VwsVR'></small><noframes id='VwsVR'>

              <legend id='VwsVR'><style id='VwsVR'><dir id='VwsVR'><q id='VwsVR'></q></dir></style></legend>
              • 本文介紹了Pylint 中的模塊“PyQt5.QtWidgets"錯誤中沒有名稱“QApplication"的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                在嘗試學習 PyQt5 時在 VS Code 中遇到此問題,模塊 'PyQt5.QtWidgets' 中沒有名稱 'QApplication'",模塊 'PyQt5.QtWidgets' 中沒有名稱 'QWidget'".

                Running into this issue in VS Code while trying to learn PyQt5, "No name 'QApplication' in module 'PyQt5.QtWidgets'", "No name 'QWidget' in module 'PyQt5.QtWidgets'"".

                我不確定這是 pylint 問題還是其他問題.我已經確認 PyQt5 安裝了 pip3 列表,但我似乎無法找出問題所在.

                I'm not sure if this is a pylint issue or something else. I've confirmed PyQt5 is installed with pip3 list but I can't seem to figure out the issue.

                import sys
                from PyQt5.QtWidgets import QApplication, QWidget
                
                def app():
                  my_app = QApplication(sys.argv)
                  w = QWidget()
                  w.setWindowTitle("Test")
                  w.show()
                  sys.exit(my_app.exec_())
                app()
                

                我希望這個錯誤不會繼續顯示,但它會阻止我在 VS Code 中運行東西.任何幫助或建議表示贊賞.

                I'd expect this error to not keep displaying but its preventing me from running things in VS Code. Any help or suggestions appreciated.

                推薦答案

                我已經解決了這個問題,顯然 Pylint 默認不加載任何 C 擴展,因為它們可以運行任意代碼. 所以我發現如果你在你的項目目錄中創建一個名為 .pylintrc 的文件的系統文件,rc 文件可以通過在 rc 文件中添加以下代碼來將這個包列入白名單以停止拋出錯誤 extension-pkg-whitelist=PyQt5.所以本質上問題不是 PyQt5,而是由于這個原因導致的 linter 拋出錯誤錯誤.

                I've figured out the issue, apparently Pylint doesn't load any C extensions by default, because those can run arbitrary code. So I found that if you create a system file in your project directory with the file named .pylintrc the rc file can whitelist this package to stop throwing errors by adding the following code in the rc file extension-pkg-whitelist=PyQt5. So essentially the issue isn't PyQt5, it was the linter throwing false errors due to this.

                這篇關于Pylint 中的模塊“PyQt5.QtWidgets"錯誤中沒有名稱“QApplication"的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                How to bind a function to an Action from Qt menubar?(如何將函數綁定到 Qt 菜單欄中的操作?)
                PyQt progress jumps to 100% after it starts(PyQt 啟動后進度躍升至 100%)
                How to set yaxis tick label in a fixed position so that when i scroll left or right the yaxis tick label should be visible?(如何將 yaxis 刻度標簽設置在固定位置,以便當我向左或向右滾動時,yaxis 刻度標簽應該可見
                `QImage` constructor has unknown keyword `data`(`QImage` 構造函數有未知關鍵字 `data`)
                Change x-axis ticks to custom strings(將 x 軸刻度更改為自定義字符串)
                How to show progress bar while saving file to excel in python?(如何在python中將文件保存為excel時顯示進度條?)
                  <tbody id='pzt0J'></tbody>

                      <bdo id='pzt0J'></bdo><ul id='pzt0J'></ul>
                      <tfoot id='pzt0J'></tfoot>
                    • <small id='pzt0J'></small><noframes id='pzt0J'>

                      <i id='pzt0J'><tr id='pzt0J'><dt id='pzt0J'><q id='pzt0J'><span id='pzt0J'><b id='pzt0J'><form id='pzt0J'><ins id='pzt0J'></ins><ul id='pzt0J'></ul><sub id='pzt0J'></sub></form><legend id='pzt0J'></legend><bdo id='pzt0J'><pre id='pzt0J'><center id='pzt0J'></center></pre></bdo></b><th id='pzt0J'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='pzt0J'><tfoot id='pzt0J'></tfoot><dl id='pzt0J'><fieldset id='pzt0J'></fieldset></dl></div>

                        • <legend id='pzt0J'><style id='pzt0J'><dir id='pzt0J'><q id='pzt0J'></q></dir></style></legend>
                          主站蜘蛛池模板: 粉嫩国产精品一区二区在线观看 | 欧美1区| 国产www在线| 久久午夜电影 | 日韩成人中文字幕 | 久久伊人精品 | 午夜视频网站 | 精品人伦一区二区三区蜜桃网站 | 午夜寂寞影院在线观看 | 久草欧美视频 | 久久久久网站 | 日本不卡免费新一二三区 | 日本视频在线播放 | 久久精品色欧美aⅴ一区二区 | 国产麻豆乱码精品一区二区三区 | 成人中文字幕在线观看 | 免费久久网 | 电影午夜精品一区二区三区 | 琪琪午夜伦伦电影福利片 | 久久精品国产亚洲a | 不卡在线视频 | 久久不卡区 | 一区视频 | 99久久国产综合精品麻豆 | 中文字幕在线一区二区三区 | 午夜国产一级 | 国产黄色电影 | 一级片av | 色伊人网 | 黄色网址免费看 | 99精品亚洲国产精品久久不卡 | 日本天天操 | 天天摸天天干 | 国产综合久久 | 九色 在线 | 成人在线日韩 | 免费看a | 亚洲欧洲中文 | 亚洲一区二区中文字幕 | 国产九九九 | 成人做爰69片免费观看 |