|
97 | 97 | 'right':'q', 'top':'r', 'bottom':'s', '_cloneid':'t',
|
98 | 98 | 'logx':'u', 'logy':'v', 'dot':'w', 'dot_radius':'x',
|
99 | 99 | 'markers':'y', 'legend':'z', 'label':'A', 'delta':'B', 'marker_color':'C',
|
100 |
| - 'size_units':'D', 'userpan':'E', 'scroll':'F'} |
| 100 | + 'size_units':'D', 'userpan':'E', 'scroll':'F', 'choices':'G'} |
101 | 101 |
|
102 | 102 | # methods are X in {'m': '23X....'}
|
103 | 103 | # pos is normally updated as an attribute, but for interval-based trails, it is updated (multiply) as a method
|
|
113 | 113 | 'marker_color']
|
114 | 114 |
|
115 | 115 | __textattrs = ['text', 'align', 'caption', 'title', 'xtitle', 'ytitle', 'selected', 'label', 'capture',
|
116 |
| - 'append_to_caption', 'append_to_title', 'bind', 'unbind', 'pause', 'GSprint'] |
| 116 | + 'append_to_caption', 'append_to_title', 'bind', 'unbind', 'pause', 'GSprint', 'choices'] |
117 | 117 |
|
118 | 118 | def _encode_attr2(sendval, val, ismethods):
|
119 | 119 | s = ''
|
@@ -3573,7 +3573,8 @@ def choices(self):
|
3573 | 3573 | return self._choices
|
3574 | 3574 | @choices.setter
|
3575 | 3575 | def choices(self, value):
|
3576 |
| - raise AttributeError('choices cannot be modified after a menu is created') |
| 3576 | + self._choices = value |
| 3577 | + self.addattr('choices') |
3577 | 3578 |
|
3578 | 3579 | @property
|
3579 | 3580 | def index(self):
|
|
0 commit comments