예제 #1
0
 def __init__(self, parent, **traits):
     """ Initializes the editor object.
     """
     HasPrivateTraits.__init__(self, **traits)
     try:
         self.old_value = getattr(self.object, self.name)
     except AttributeError:
         # Getting the attribute will fail for 'Event' traits:
         self.old_value = Undefined
예제 #2
0
파일: editor.py 프로젝트: gkliska/razvoj
 def __init__ ( self, parent, **traits ):
     """ Initializes the editor object.
     """
     HasPrivateTraits.__init__( self, **traits )
     try:
         self.old_value = getattr( self.object, self.name )
     except AttributeError:
         # Getting the attribute will fail for 'Event' traits:
         self.old_value = Undefined
예제 #3
0
 def __init__(self, *args, **traits):
     """ Initializes the factory object.
     """
     HasPrivateTraits.__init__(self, **traits)
     self.init(*args)
예제 #4
0
 def __init__ ( self, *args, **traits ):
     """ Initializes the factory object.
     """
     HasPrivateTraits.__init__( self, **traits )
     self.init( *args )