Show More
@@ -59,6 +59,10 b' class _SelectionWidget(DOMWidget):' | |||
|
59 | 59 | if isinstance(values, list): |
|
60 | 60 | # preserve list order with an OrderedDict |
|
61 | 61 | kwargs['values'] = OrderedDict((unicode_type(v), v) for v in values) |
|
62 | # python3.3 turned on hash randomization by default - this means that sometimes, randomly | |
|
63 | # we try to set value before setting values, due to dictionary ordering. To fix this, force | |
|
64 | # the setting of self.values right now, before anything else runs | |
|
65 | self.values = kwargs['values'] | |
|
62 | 66 | DOMWidget.__init__(self, *args, **kwargs) |
|
63 | 67 | |
|
64 | 68 | def _values_changed(self, name, old, new): |
General Comments 0
You need to be logged in to leave comments.
Login now