Skip to content
Snippets Groups Projects
Commit 2aa1b89d authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Choice properties which mix types need to have 'allowStr=True' for

command-line processing to work.
parent a6a6ee63
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,8 @@ class SliceCanvasOpts(props.HasProperties):
zax = props.Choice((0, 1, 2),
alternates=[['x', 'X'], ['y', 'Y'], ['z', 'Z']])
alternates=[['x', 'X'], ['y', 'Y'], ['z', 'Z']],
allowStr=True)
"""The display coordinate system axis to be used as the screen *depth*
axis.
"""
......
......@@ -61,7 +61,7 @@ class SceneOpts(props.HasProperties):
# performance because, for example, the
# OrthoEditProfile does numerical comparisons
# to it.
performance = props.Choice((1, 2, 3, 4), default=4)
performance = props.Choice((1, 2, 3, 4), default=4, allowStr=True)
"""User controllable performance setting.
This property is linked to the :attr:`renderMode` and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment