def __init__(self, jobsDir, elements, potFile, alat): numElements = len(elements.split()) if numElements != 5: print('Expecting 5 elements, but ' + numElements + ' (' + elements + ') were inputted.') nmod.nexit() Compound.__init__(self, jobsDir, elements, potFile, alat)
def __init__(self, text=None, path=None, model=PATHTEXT_ROTATE, start_pos=0.0, duplicate=None, _blended_text=None): if duplicate is not None: Compound.__init__(self, duplicate=duplicate) self.text = self.objects[0] self.path = self.objects[1] else: if _blended_text is not None: self.text = _blended_text self.path = path Compound.__init__(self, [self.text, self.path]) elif text is not None: self.text = InternalPathText(text.Text(), start_pos=start_pos, model=model, duplicate=text) self.path = path Compound.__init__(self, [self.text, self.path]) else: # we're being loaded self.text = self.path = None Compound.__init__(self)
def __init__(self, steps=2, start=None, end=None, duplicate=None): if duplicate is not None: self.steps = duplicate.steps Compound.__init__(self, duplicate=duplicate) else: self.steps = steps if start is not None: Compound.__init__(self, self.compute_blend(start, end)) else: Compound.__init__(self)
def __init__(self, steps = 2, start = None, end = None, duplicate = None): if duplicate is not None: self.steps = duplicate.steps Compound.__init__(self, duplicate = duplicate) else: self.steps = steps if start is not None: Compound.__init__(self, self.compute_blend(start, end)) else: Compound.__init__(self)
def __init__(self, text = None, path = None, model = PATHTEXT_ROTATE, start_pos = 0.0, duplicate = None, _blended_text = None): if duplicate is not None: Compound.__init__(self, duplicate = duplicate) self.text = self.objects[0] self.path = self.objects[1] else: if _blended_text is not None: self.text = _blended_text self.path = path Compound.__init__(self, [self.text, self.path]) elif text is not None: self.text = InternalPathText(text.Text(), start_pos = start_pos, model = model, duplicate = text) self.path = path Compound.__init__(self, [self.text, self.path]) else: # we're being loaded self.text = self.path = None Compound.__init__(self)
def __init__(self, steps=0, start=None, end=None, duplicate=None): # Three different ways to instantiate this class: # # 1. Duplicating a BlendGroup: duplicate is not None. # # 2. Creating a BlendGroup from two normal graphics objects: # start and end are not None. # # 3. Creating a BlendGroup from an sk file: steps is 0. if duplicate is not None: # case 1 Compound.__init__(self, duplicate=duplicate) #self.Connect() elif start is not None: # case 2 inter = BlendInterpolation(steps, start, end) Compound.__init__(self, [start, inter, end]) #self.Connect() else: # case 3 Compound.__init__(self)
def __init__(self, steps = 0, start = None, end = None, duplicate = None): # Three different ways to instantiate this class: # # 1. Duplicating a BlendGroup: duplicate is not None. # # 2. Creating a BlendGroup from two normal graphics objects: # start and end are not None. # # 3. Creating a BlendGroup from an sk file: steps is 0. if duplicate is not None: # case 1 Compound.__init__(self, duplicate = duplicate) #self.Connect() elif start is not None: # case 2 inter = BlendInterpolation(steps, start, end) Compound.__init__(self, [start, inter, end]) #self.Connect() else: # case 3 Compound.__init__(self)