Beispiel #1
0
 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
Beispiel #2
0
    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
Beispiel #3
0
    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 
Beispiel #4
0
    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
Beispiel #5
0
    def __init__(self):
        Model.__init__(self)

        self.__own_copyright = True
        self.__itsme = False
        self.templ = templates.DEFAULT_MAP.copy()

        self.register_observer(self)
Beispiel #6
0
    def __init__(self):
        Model.__init__(self)

        self.__own_copyright = True
        self.__itsme = False
        self.templ = templates.DEFAULT_MAP.copy()

        self.register_observer(self)
Beispiel #7
0
    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
Beispiel #8
0
    def __init__(self):
        Model.__init__(self)

        # creates sub models
        self.part1 = Part1Model()
        self.part2 = Part2Model()
        self.part3 = Part3Model()
        
        return
Beispiel #9
0
    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
Beispiel #10
0
    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
Beispiel #11
0
    def __init__(self):
        Model.__init__(self)

        self.currencies = CurrenciesModel()
        self.currencies.load(self.CURR_FILE)
        self.converter = ConverterModel(self.currencies)

        self.about = AboutModel()
        return
Beispiel #12
0
    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
Beispiel #13
0
 def __init__(self, currencies_model):
     Model.__init__(self)
     
     self.currencies = currencies_model
     return
Beispiel #14
0
    def __init__(self):
        Model.__init__(self)

        self.buf = gtk.TextBuffer()
        self.insert()
        return
Beispiel #15
0
 def __init__(self):
     Model.__init__(self)
     return
Beispiel #16
0
 def __init__(self):
   Model.__init__(self)
   self.mylist = []
   return
Beispiel #17
0
    def __init__(self, currencies_model):
        Model.__init__(self)

        self.currencies = currencies_model
        return
Beispiel #18
0
    def __init__(self):
        Model.__init__(self)

        self.credits = open(self.CREDITS_FILE, "r").read()
        return
Beispiel #19
0
 def __init__(self):
     Model.__init__(self)
     return
Beispiel #20
0
 def __init__(self):
     Model.__init__(self)
     self.data = DataModel()
     self.clear()
Beispiel #21
0
 def __init__(self):
     Model.__init__(self)
     self.concrete = 1
Beispiel #22
0
 def __init__(self):
     Model.__init__(self)
     # Assignment to property only works after init.
     self.numbers = []
Beispiel #23
0
    def __init__(self):
        Model.__init__(self)

        self.credits = open(self.CREDITS_FILE, "r").read()
        return
Beispiel #24
0
 def __init__(self):
     Model.__init__(self)
     # Assignment to property only works after init.
     self.numbers = []
Beispiel #25
0
 def __init__(self):
   Model.__init__(self)
   self.mylist = []
   return