Ejemplo n.º 1
0
 def __init__(self, view, targetFrame):
     self.view = view
     self.targetFrame = targetFrame
     self.camera = view.camera()
     self.actions = []
     self.properties = propertyset.PropertySet()
     self.properties.connectPropertyChanged(self.onPropertyChanged)
     self.setup()
Ejemplo n.º 2
0
    def __init__(self, **kwargs):
        self.statusMessage = ''
        self.failReason = ''
        self.properties = propertyset.PropertySet()
        self.properties.addProperty('Name', _splitCamelCase(self.__class__.__name__).lower())

        for cls in reversed(inspect.getmro(self.__class__)):
            if hasattr(cls, 'getDefaultProperties'):
                cls.getDefaultProperties(self.properties)

        for name, value in kwargs.iteritems():
            self.properties.setProperty(_splitCamelCase(name).capitalize(), value)