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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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