示例#1
0
文件: model.py 项目: roboogle/gtkmvc3
 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
示例#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
示例#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 
示例#4
0
文件: model.py 项目: roboogle/gtkmvc3
    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
示例#5
0
文件: model.py 项目: roboogle/gtkmvc3
    def __init__(self):
        Model.__init__(self)

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

        self.register_observer(self)
示例#6
0
文件: model.py 项目: roboogle/gtkmvc3
    def __init__(self):
        Model.__init__(self)

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

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

        # creates sub models
        self.part1 = Part1Model()
        self.part2 = Part2Model()
        self.part3 = Part3Model()
        
        return
示例#9
0
文件: model.py 项目: roboogle/gtkmvc3
    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
示例#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
示例#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
示例#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
示例#13
0
 def __init__(self, currencies_model):
     Model.__init__(self)
     
     self.currencies = currencies_model
     return
示例#14
0
    def __init__(self):
        Model.__init__(self)

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

        self.currencies = currencies_model
        return
示例#18
0
文件: about.py 项目: roboogle/gtkmvc3
    def __init__(self):
        Model.__init__(self)

        self.credits = open(self.CREDITS_FILE, "r").read()
        return
示例#19
0
文件: model.py 项目: roboogle/gtkmvc3
 def __init__(self):
     Model.__init__(self)
     return
示例#20
0
 def __init__(self):
     Model.__init__(self)
     self.data = DataModel()
     self.clear()
示例#21
0
 def __init__(self):
     Model.__init__(self)
     self.concrete = 1
示例#22
0
 def __init__(self):
     Model.__init__(self)
     # Assignment to property only works after init.
     self.numbers = []
示例#23
0
    def __init__(self):
        Model.__init__(self)

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