예제 #1
0
 def values_changed(self):
     """ Recomputes the cached data based on the underlying enumeration model.
     """
     self._names, self._mapping, self._inverse_mapping = \
         enum_values_changed( self._value() )
예제 #2
0
파일: set_editor.py 프로젝트: 5n1p/traitsui
 def values_changed ( self ):
     """ Recomputes the cached data based on the underlying enumeration model.
     """
     self._names, self._mapping, self._inverse_mapping = \
         enum_values_changed( self._value() )
예제 #3
0
    def _values_set(self):
        """ Recomputes the mappings whenever the **values** facet is changed.
        """
        self._names, self._mapping, self._inverse_mapping = enum_values_changed(self.values)

        self.values_modified = True