Ejemplo n.º 1
0
 def __init__(self, model, view):
     Controller.__init__(self, model, view, handlers='class')
     view.connect_signals(self)
     self.note = NoteCtrl(model.data.empty_note, view.note, self)
     self.main = MainCtrl(model.data, view.main, self.note)
     self.main.parent = self
     return
Ejemplo n.º 2
0
 def __init__(self, model, view):
     Controller.__init__(self, model, view, handlers='class')
     view.connect_signals(self)
     self.note = NoteCtrl(model.data.empty_note, view.note, self)
     self.main = MainCtrl(model.data, view.main, self.note)
     self.main.parent = self
     return
Ejemplo n.º 3
0
    def __init__(self, model, view):
        Controller.__init__(self, model, view)

        self.source = AmountCtrl(model.source, view.source)
        self.target = AmountCtrl(model.target, view.target)

        return
Ejemplo n.º 4
0
    def __init__(self, model, view):
        Controller.__init__(self, model, view)

        self.source = AmountCtrl(model.source, view.source)
        self.target = AmountCtrl(model.target, view.target)
        
        return
Ejemplo n.º 5
0
    def __init__(self, model, view):
        Controller.__init__(self, model, view)

        self.adding_model = None
        self.editing_model = None
        self.editing_iter = None

        self.currency = None
        return
Ejemplo n.º 6
0
    def __init__(self, m, v):
        Controller.__init__(self, m, v)

        # creates sub controllers
        self.bars = BarsCtrl(m, v.bars, self)
        self.part1 = Part1Ctrl(m.part1, v.part1)
        self.part2 = Part2Ctrl(m.part2, v.part2)
        self.part3 = Part3Ctrl(m.part3, v.part3)
        return
Ejemplo n.º 7
0
    def register_view(self, view):
        """Creates treeview columns, and connect missing signals"""
        Controller.register_view(self, view)

        # connects additional signals
        self.view['tv_notes'].get_buffer().connect("changed",
                                          self.on_notes_changed)

        # Sets initial values for the view.
        # Later observer will keep the view always aligned
        self.view.set_name(self.model.name)
        self.view.set_rate(self.model.rate)
        self.view.set_notes(self.model.notes)
        return
Ejemplo n.º 8
0
    def register_view(self, view):
        """Creates treeview columns, and connect missing signals"""
        Controller.register_view(self, view)

        # connects additional signals
        self.view['tv_notes'].get_buffer().connect("changed",
                                                   self.on_notes_changed)

        # Sets initial values for the view.
        # Later observer will keep the view always aligned
        self.view.set_name(self.model.name)
        self.view.set_rate(self.model.rate)
        self.view.set_notes(self.model.notes)
        return
Ejemplo n.º 9
0
 def on_about_activate(self, item):
     from yomanlib.views.appview import AppAboutView
     v = AppAboutView(parent_view=self.view)
     c = Controller(self.model, v, handlers='class')
     v.run()
     self.model.unregister_observer(c)
     return True
Ejemplo n.º 10
0
 def __init__(self, model, view, note_ctrl):
     Controller.__init__(self, model, view, handlers='class')
     view.connect_signals(self)
     self.note = note_ctrl
     return
Ejemplo n.º 11
0
 def __init__(self, model, view, note_ctrl):
     Controller.__init__(self, model, view)
     self.note = note_ctrl
     return
Ejemplo n.º 12
0
 def __init__(self, model, view):
     Controller.__init__(self, model, view)
     self.note = NoteCtrl(model.data.empty_note, view.note, self)
     self.main = MainCtrl(model.data, view.main, self.note)
     self.main.parent = self
     return
Ejemplo n.º 13
0
 def __init__(self, model, view, window_ctrl):
     Controller.__init__(self, model, view)
     self.window_ctrl = window_ctrl
     self.stop_model_update = False
     return
Ejemplo n.º 14
0
 def __init__(self, model, view, window_ctrl):
     Controller.__init__(self, model, view, handlers='class')
     view.connect_signals(self)
     self.window_ctrl = window_ctrl
     self.stop_model_update = False
     return
Ejemplo n.º 15
0
 def __init__(self, m, v, appl_ctrl):
     Controller.__init__(self, m, v)
     return
Ejemplo n.º 16
0
 def __init__(self, model, view):
     Controller.__init__(self, model, view)
     self.__changing = False
     return
Ejemplo n.º 17
0
 def __init__(self, model, view):
     Controller.__init__(self, model, view)
     self.converter = ConverterCtrl(model.converter, view.converter)
     self.currencies = None
     return
Ejemplo n.º 18
0
 def __init__(self, model, view):
     """Contructor. model will be accessible via the member 'self.model'.
     View registration is also performed."""
     Controller.__init__(self, model, view)
     return
Ejemplo n.º 19
0
 def __init__(self, model, view, window_ctrl):
     Controller.__init__(self, model, view, handlers='class')
     view.connect_signals(self)
     self.window_ctrl = window_ctrl
     self.stop_model_update = False
     return
Ejemplo n.º 20
0
 def __init__(self, model, view):
     Controller.__init__(self, model, view)
     self.__changing = False
     return
Ejemplo n.º 21
0
 def __init__(self, model, view, note_ctrl):
     Controller.__init__(self, model, view, handlers='class')
     view.connect_signals(self)
     self.note = note_ctrl
     return