Вопрос

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.

Это было полезно?

Решение

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)

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top