Question

I haven't seen an example of this but I wanted to know if any knows how to implement a colorbar with an adjustable slider using wxpython. Basically the slider should change the levels of the colorbar and as such adjust the colormap. If anyone has an idea of how to do and possible some example code it would be much appreciated.

Was it helpful?

Solution

I think you're looking for one of the following widgets:

ColourDialog, ColourSelect, PyColourChooser or CubeColourDialog

They all let you choose colors in different ways and they have a slider to help adjust the colours too.

You can see each of them in action in the wxPython demo (downloadable from the wxPython web page)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top