<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Daniel,<div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>I have committed documentation for those options, which will show up in the next build. I have also made it possible to use them without subclassing, by providing the 'values' keyword to the EnumOption constructor, or both 'values' and 'labels' to the SymbolcEnumOption constructor.</div><div class=""><br class=""></div><div class="">--Eric<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 24, 2020, at 6:16 PM, Daniel Esteban Palma Igor <<a href="mailto:daniel.palma.i@ug.uchile.cl" class="">daniel.palma.i@ug.uchile.cl</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Ok, thank you for the clarification<br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 24 Nov 2020 at 22:56, Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu" class="">pett@cgl.ucsf.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Daniel,<br class="">
The documentation is kind of sparse there -- I'll try to remedy that soon. Yes, you would make a subclass. If you subclass EnumOption then you only specify "values" not "labels" -- text shown to the user will be the same as the values. If you subclass SymbolicEnumOption, then you would specify both "values" and "labels", and "labels" is what is shown in the user interface.<br class="">
<br class="">
--Eric<br class="">
<br class="">
Eric Pettersen<br class="">
UCSF Computer Graphics Lab<br class="">
<br class="">
> On Nov 24, 2020, at 2:56 PM, Daniel Esteban Palma Igor <<a href="mailto:daniel.palma.i@ug.uchile.cl" target="_blank" class="">daniel.palma.i@ug.uchile.cl</a>> wrote:<br class="">
> <br class="">
> Hi, when using the chimerax.ui.options.EnumOption, are you supposed to create a subclass that specifies the attributes "labels" and "values"? the documentation doesn't say anything about it.<br class="">
> Regards,<br class="">
> Daniel Palma Igor<br class="">
> _______________________________________________<br class="">
> ChimeraX-users mailing list<br class="">
> <a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">
> Manage subscription:<br class="">
> <a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" rel="noreferrer" target="_blank" class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br class="">
<br class="">
</blockquote></div>
_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""></div></blockquote></div><br class=""></div></body></html>