def __init__(self): Model.__init__(self) self._counters = dict((name, 0) for name in MyModel.counter_names) # initial selected counter is choosen randomly self.counter_select = random.choice(MyModel.counter_names) return
def __init__(self, name=None, rate=None, notes=None): Model.__init__(self) if name: self.name = name if rate: self.rate = rate if notes: self.notes = notes return
def __init__(self): Model.__init__(self) self.__own_copyright = True self.__itsme = False self.templ = templates.DEFAULT_MAP.copy() self.register_observer(self)
def __init__(self, currencies_model): Model.__init__(self) self.source = AmountModel(currencies_model) self.target = AmountModel(currencies_model) self.observe_model(self.source) self.observe_model(self.target) return
def __init__(self): Model.__init__(self) # creates sub models self.part1 = Part1Model() self.part2 = Part2Model() self.part3 = Part3Model() return
def __init__(self): Model.__init__(self) self.messages= ("I am patient with stupidity", "but not with those", "who are proud of it.", "(Edith Sitwell)", ) return
def __init__(self): Model.__init__(self) self.currencies = CurrenciesModel() self.currencies.load(self.CURR_FILE) self.converter = ConverterModel(self.currencies) self.about = AboutModel() return
def __init__(self): Model.__init__(self) self.messages = ( "I am patient with stupidity", "but not with those", "who are proud of it.", "(Edith Sitwell)", ) return
def __init__(self, currencies_model): Model.__init__(self) self.currencies = currencies_model return
def __init__(self): Model.__init__(self) self.buf = gtk.TextBuffer() self.insert() return
def __init__(self): Model.__init__(self) return
def __init__(self): Model.__init__(self) self.mylist = [] return
def __init__(self): Model.__init__(self) self.credits = open(self.CREDITS_FILE, "r").read() return
def __init__(self): Model.__init__(self) self.data = DataModel() self.clear()
def __init__(self): Model.__init__(self) self.concrete = 1
def __init__(self): Model.__init__(self) # Assignment to property only works after init. self.numbers = []