久久久久久久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 問題還是其他問題.我已經(jīng)確認 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()
                

                我希望這個錯誤不會繼續(xù)顯示,但它會阻止我在 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.

                推薦答案

                我已經(jīng)解決了這個問題,顯然 Pylint 默認不加載任何 C 擴展,因為它們可以運行任意代碼. 所以我發(fā)現(xiàn)如果你在你的項目目錄中創(chuàng)建一個名為 .pylintrc 的文件的系統(tǒng)文件,rc 文件可以通過在 rc 文件中添加以下代碼來將這個包列入白名單以停止拋出錯誤 extension-pkg-whitelist=PyQt5.所以本質(zhì)上問題不是 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模板網(wǎng)!

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

                相關文檔推薦

                How to bind a function to an Action from Qt menubar?(如何將函數(shù)綁定到 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` 構造函數(shù)有未知關鍵字 `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>
                          主站蜘蛛池模板: 日韩一级片 | 国产一区二区影院 | 国产成人精品一区二区三区视频 | 亚洲一区二区三区四区在线 | 日韩在线不卡视频 | 亚洲高清在线观看 | 精品视频一区二区三区四区 | 免费看黄色av | 欧美性生交xxxxx久久久 | 国产色自拍 | 亚洲综合二区 | 美日韩丰满少妇在线观看 | 亚洲成人免费在线 | 欧美综合在线观看 | 久久国内精品 | www.国产精品 | 日韩欧美小视频 | 黑人精品一区二区 | 四虎在线免费视频 | 国产资源在线播放 | www.亚洲一区| 欧洲色综合 | 日本国产精品 | 成人在线免费看 | 亚洲三区在线 | 中文字幕精品视频 | 色妞av| 亚洲国产精 | 精品在线一区 | 黄色一级片网站 | 亚洲天堂一区二区 | 国产中文字幕av | av手机天堂 | 日韩色在线 | 国产成人av网站 | 亚洲看片 | 超碰人人网 | 日韩视频免费在线观看 | 91少妇丨porny丨 | 国产成人午夜精品 | 中文字幕在线观看网站 |