[traits] ImageEnumEditor issue...

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[traits] ImageEnumEditor issue...

fred-2
Hi all,

Until now, I used EnumEditor to display the list of available colormaps
in my Traits apps.

http://ktools.free.fr/snapshot1.png

Now, I think using ImageEnumEditor is more sexy.

http://ktools.free.fr/snapshot2.png

But in this case, I did not have anymore the vertical slider I got
with EnumEditor, so I can't choose the colormap I want (and I don't want
to display all available colormaps at once, like in Mayavi).

Any clue?

If not, I will have to go back to EnumEditor, which I would like to avoid...


TIA.

Cheers,

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [traits] ImageEnumEditor issue...

bryce hendrix-2
On 05/05/2010 11:11 AM, Fred wrote:

> Hi all,
>
> Until now, I used EnumEditor to display the list of available colormaps
> in my Traits apps.
>
> http://ktools.free.fr/snapshot1.png
>
> Now, I think using ImageEnumEditor is more sexy.
>
> http://ktools.free.fr/snapshot2.png
>
> But in this case, I did not have anymore the vertical slider I got
> with EnumEditor, so I can't choose the colormap I want (and I don't want
> to display all available colormaps at once, like in Mayavi).
>
> Any clue?
>
>    

Looking at the demo in the Traits examples, it seems pretty buggy. It
works reasonably well with Qt, but on Wx, the standard editor's popup
window works sporadically at best.

If you feel only slightly adventurous, you can look at the changes I
make to the ColorEditor to draw colored boxes in the combo box, and
change the ImageEnumEditor to do the same instead of the broken popup
window. I'll gladly accept a patch for that.

Bryce
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev