PyQt5 Python3错误非默认参数跟随默认参数

时间:2019-02-10 22:08:30

标签: python pyqt5

我继续收到此错误:无论我使用PyQt运行什么代码,“非默认参数都跟随默认参数” 这是我简单程序的完整代码 我正在使用PyCharm 2017.02和PyQt5

import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtGui import QIcon


class App(QWidget):
    def __init__(self):
        super().__init__()
        self.title = 'PyQt5 simple window - pythonspot.com'
        self.left = 10
        self.top = 10
        self.width = 640
        self.height = 480
        self.initUI()


    def initUI(self):
        self.setWindowTitle(self.title)
        self.setGeometry(self.left, self.top, self.width, self.height)
        self.show()

    if __name__ == '__main__':
        app = QApplication(sys.argv)
        ex = App()
        sys.exit(app.exec_())

回溯(最近通话最近):   在第2行的文件“ C:/Users/User/.PyCharm2017.2/system/python_stubs/1323652623/PyQtExperiment10.02.py”     从PyQt5.QtWidgets导入QApplication,QWidget   文件“ C:\ Users \ User.PyCharm2017.2 \ system \ python_stubs \ 1323652623 \ PyQt5 \ QtWidgets__init __。py”,第37行     定义qDrawShadePanel(QPainter,p_int,p_int_1,p_int_2,p_int_3,QPalette,sunken = False,lineWidth = 1,fill,QBrush = None,QColor = None,Qt_GlobalColor = None,QGradient = None,* args,** kwargs):#真实签名未知;注意:无法可靠地从 doc

恢复

我找不到与PyQt5相关的任何解决方案

0 个答案:

没有答案
相关问题