[chimerax-users] Use of EnumOption

Daniel Esteban Palma Igor daniel.palma.i at ug.uchile.cl
Tue Nov 24 18:16:28 PST 2020


Ok, thank you for the clarification

On Tue, 24 Nov 2020 at 22:56, Eric Pettersen <pett at cgl.ucsf.edu> wrote:

> Hi Daniel,
>         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.
>
> --Eric
>
>         Eric Pettersen
>         UCSF Computer Graphics Lab
>
> > On Nov 24, 2020, at 2:56 PM, Daniel Esteban Palma Igor <
> daniel.palma.i at ug.uchile.cl> wrote:
> >
> > 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.
> > Regards,
> > Daniel Palma Igor
> > _______________________________________________
> > ChimeraX-users mailing list
> > ChimeraX-users at cgl.ucsf.edu
> > Manage subscription:
> > https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20201124/a82c73e2/attachment.html>


More information about the ChimeraX-users mailing list