Exemple #1
0
 def _selected_changed(self, new):
     if not self._no_update:
         try:
             selected_row = self.value.index(new)
         except Exception as e:
             if TRAITS_DEBUG:
                 from traits.api import raise_to_debug
                 raise_to_debug()
         else:
             self._selected_row_changed(selected_row)
Exemple #2
0
 def get_raw_value ( self, object ):
     """ Gets the unformatted value of the column for a specified object.
     """
     try:
         return xgetattr( self.get_object( object ), self.name )
     except Exception as e:
         if TRAITS_DEBUG:
             from traits.api import raise_to_debug
             raise_to_debug()
         return None
Exemple #3
0
 def get_raw_value(self, object):
     """ Gets the unformatted value of the column for a specified object.
     """
     try:
         return xgetattr(self.get_object(object), self.name)
     except Exception as e:
         if TRAITS_DEBUG:
             from traits.api import raise_to_debug
             raise_to_debug()
         return None
Exemple #4
0
 def _selected_changed(self, new):
     if not self._no_update:
         try:
             selected_row = self.value.index(new)
         except Exception as e:
             if TRAITS_DEBUG:
                 from traits.api import raise_to_debug
                 raise_to_debug()
         else:
             self._selected_row_changed(selected_row)