Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported operand type(s) for +: 'PySide2.QtWidgets.QDialogButtonBox.StandardButton' and 'PySide2.QtWidgets.QDialogButtonBox.StandardButton' #388

Open
FloatingPoint75 opened this issue Jun 8, 2024 · 2 comments

Comments

@FloatingPoint75
Copy link

Hello,
when I launch the "Change Parameters" command I get the following error:

17:23:56 Traceback (most recent call last):
File "C:\Users\giuli\AppData\Roaming\FreeCAD\Mod\fasteners.\FSChangeParams.py", line 403, in getStandardButtons
return QtGui.QDialogButtonBox.Ok + QtGui.QDialogButtonBox.Cancel
<class 'TypeError'>: unsupported operand type(s) for +: 'PySide2.QtWidgets.QDialogButtonBox.StandardButton' and 'PySide2.QtWidgets.QDialogButtonBox.StandardButton'

The command works anyway, but it looks like there is a wrong operand (That should be a | and not a +)

Thank you!

@shaise
Copy link
Owner

shaise commented Jun 8, 2024

Thanks for the catch!
Should be fixed now.

@FloatingPoint75
Copy link
Author

Great, thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants