<div dir="ltr">Ok, thank you for the clarification<br></div><br><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">pett@cgl.ucsf.edu</a>> wrote:<br></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>
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>
<br>
--Eric<br>
<br>
Eric Pettersen<br>
UCSF Computer Graphics Lab<br>
<br>
> On Nov 24, 2020, at 2:56 PM, Daniel Esteban Palma Igor <<a href="mailto:daniel.palma.i@ug.uchile.cl" target="_blank">daniel.palma.i@ug.uchile.cl</a>> wrote:<br>
> <br>
> 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>
> Regards,<br>
> Daniel Palma Igor<br>
> _______________________________________________<br>
> ChimeraX-users mailing list<br>
> <a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank">ChimeraX-users@cgl.ucsf.edu</a><br>
> Manage subscription:<br>
> <a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" rel="noreferrer" target="_blank">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br>
<br>
</blockquote></div>