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
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
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
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
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
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
def __init__(self, model, view, note_ctrl): Controller.__init__(self, model, view, handlers='class') view.connect_signals(self) self.note = note_ctrl return
def __init__(self, model, view, note_ctrl): Controller.__init__(self, model, view) self.note = note_ctrl return
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
def __init__(self, model, view, window_ctrl): Controller.__init__(self, model, view) self.window_ctrl = window_ctrl self.stop_model_update = False return
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
def __init__(self, m, v, appl_ctrl): Controller.__init__(self, m, v) return
def __init__(self, model, view): Controller.__init__(self, model, view) self.__changing = False return
def __init__(self, model, view): Controller.__init__(self, model, view) self.converter = ConverterCtrl(model.converter, view.converter) self.currencies = None return
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