Skip to content

maya2019->file->new TypeError #167

@fankaiqin

Description

@fankaiqin

# Traceback (most recent call last):
# File "C:\Users\net01\Documents\maya\scripts\dwpicker-1.0.4\dwpicker\main.py", line 640, in call_new
# 'shapes': []})
# File "C:\Users\net01\Documents\maya\scripts\dwpicker-1.0.4\dwpicker\main.py", line 531, in add_picker
# picker = self.create_picker(data)
# File "C:\Users\net01\Documents\maya\scripts\dwpicker-1.0.4\dwpicker\main.py", line 526, in create_picker
# picker = PickerStackedView(document, self.editable)
# File "C:\Users\net01\Documents\maya\scripts\dwpicker-1.0.4\dwpicker\picker.py", line 112, in init
# self.layers_menu = VisibilityLayersMenu(document)
# File "C:\Users\net01\Documents\maya\scripts\dwpicker-1.0.4\dwpicker\picker.py", line 788, in init
# self.update_actions()
# File "C:\Users\net01\Documents\maya\scripts\dwpicker-1.0.4\dwpicker\picker.py", line 797, in update_actions
# action = QtWidgets.QAction('Show all')
# TypeError: # 'PySide2.QtWidgets.QAction' called with wrong argument types:
# PySide2.QtWidgets.QAction(str)
# Supported signatures:
# PySide2.QtWidgets.QAction(PySide2.QtCore.QObject)
# PySide2.QtWidgets.QAction(PySide2.QtGui.QIcon, unicode, PySide2.QtCore.QObject)
PySide2.QtWidgets.QAction(unicode, PySide2.QtCore.QObject)

modify to:
action = QtWidgets.QAction('Show all', self)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions