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

painter.setPen(QPen(QColor(color))) # OverflowError: argument 1 #3

Open
fluber opened this issue Jan 10, 2022 · 0 comments
Open

painter.setPen(QPen(QColor(color))) # OverflowError: argument 1 #3

fluber opened this issue Jan 10, 2022 · 0 comments

Comments

@fluber
Copy link

fluber commented Jan 10, 2022

File "QtProperty\qttreepropertybrowser.py", line 363,

painter.setPen(QPen(QColor(color)))

should chnage to:

blue = color % 256
green = color / 256 % 256
red = color / 256 /256 % 256
painter.setPen(QPen(QColor(red, green, blue)))

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

1 participant