Closed BigRoy closed 4 years ago
What happened?
When trying to load the creator tool it fails to run because of the following error:
TypeError: setPropertyName(self, Union[QByteArray, bytes, bytearray]): argument 1 has unexpected type 'str'
However, when fixing that code by turning it into setPropertyName(b"value") with the b prefix then it resulted in a crash because of an additonal bug.
setPropertyName(b"value")
b
TypeError: unable to convert a Python 'NoneType' object to a C++ 'QColor' instance
It fails because of this line introduced with #448. It's easily resolved by initializing the value with a valid QColor as proposed on Gitter
QColor
To Reproduce
from avalon.tools import creator creator.show()
Additional context
Issue
What happened?
When trying to load the creator tool it fails to run because of the following error:
However, when fixing that code by turning it into
setPropertyName(b"value")
with theb
prefix then it resulted in a crash because of an additonal bug.It fails because of this line introduced with #448. It's easily resolved by initializing the value with a valid
QColor
as proposed on GitterTo Reproduce
Additional context