Skip to content

Addon throws StandardButton exception #78

Description

@relikd
15:52:45  pyException: Traceback (most recent call last):
  File ".../FreeCAD/v1-1/Mod/LCInterlocking/./panel/treepanel.py", line 100, in getStandardButtons
    return int(QtGui.QDialogButtonBox.Ok | QtGui.QDialogButtonBox.Cancel)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<class 'TypeError'>: int() argument must be a string, a bytes-like object or a real number, not 'StandardButton'

Not sure if FreeCAD has a wrong mapping, but in PySide6 it is:

QtGui.QDialogButtonBox.StandardButton.Ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions