错误定义:
def __init__(self, parent=None, title: str, content: str, coverPath: str, coverType='album'):
修改:
def __init__(self, title: str, content: str, coverPath: str, coverType='album', parent=None):
python语法规定。有默认值的参数,得放在没有默认值的参数之后。
错误定义:
def __init__(self, parent=None, title: str, content: str, coverPath: str, coverType='album'):
修改:
def __init__(self, title: str, content: str, coverPath: str, coverType='album', parent=None):
python语法规定。有默认值的参数,得放在没有默认值的参数之后。