def __init__(self, parent=None, rect=sf.Rectangle(),\ alignment = Position.Center, spacing=sf.Vector2(0, 0), \ autoDefineSize = True, select=False, active=False, \ alwaysUpdateSelection=True, alwaysUpdateActivation=True, \ permanentSelection=False, permanentActivation=False, \ changeRight = sf.Keyboard.RIGHT, changeLeft = sf.Keyboard.LEFT,\ changeTop = sf.Keyboard.UP, changeBottom = sf.Keyboard.DOWN): Layout.__init__(self, parent, rect, alignment, spacing, autoDefineSize) Active.__init__(self, select, active, alwaysUpdateSelection,\ alwaysUpdateActivation, permanentSelection, permanentActivation) self.canFocus=False self.changeLeft = changeLeft self.changeRight = changeRight self.changeTop = changeTop self.changeBottom = changeBottom self._howActiveKeyboard = [self.changeLeft, self.changeRight, self.changeTop, self.changeBottom] self._currentSelect = None
def __init__(self, name, facility): Layout.__init__(self, name, facility) # containing communicator self.ccomm = None # embedded comminicator1 self.ecomm1 = None # embedded comminicator2 self.ecomm2 = None # list of communicators created to pass imformation # between different solvers self.ccommPlus1 = [] self.ccommPlus2 = [] self.ecommPlus1 = [] self.ecommPlus2 = [] self.comm = None self.rank = 0 self.nodes = 0 return