Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
pycolourchooser palette click broken #957
Operating system: MacOS 10.13.6
I have an application that uses the PyColourChooser, including the palette. I've been working on updating it for wxpython4. I've found that when you click on the palette you get these error messages:
Upon investigation, it looks like in pycolourchooser.py, line 370 (in hsvToColour) is passing floats to wx.Colour instead of ints. This problem is easily duplicated just using the PyColourChooser in the wxpython demo.
I was able to fix it by simply changing line 370 to:
This fixed both errors above. I'm hoping this can be easily incorporated into the next point release.