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
[DEMO] HyperTreeList: right click -> select context menu item causes error #1032
Operating system: Windows 10
Description of the problem:
After this happens, it seems like a lot of the other options that start having issues.
Unsure if this is strictly due to the demo code, or if they are issues with the HyperTreeList itself
This is probably due to the fact that we are passing a color as a tuple instead of a wx.Colour object when setting the item text colour/background. Maybe the underlying CustomTreeCtrl should be patched to detect whether the colour passed is a tuple (or a string) and convert it to wx.Colour on the fly.
Agreed. I seem to recall doing that somewhere else too, although I don't remember where. It's very easy to do, just one line, that can replace the line already there for assigning the attribute. Something like this:
# instead of this self.someColour = someParameter # do this self.someColour = wx.Colour(someParameter)
Then no matter what is passed in