def register_view(self, view): Controller.register_view(self, view) self.view['window'].connect('destroy', gtk.main_quit) self.init_cbox_model() self.init_tview_buffer()
def register_view(self, view): Controller.register_view(self, view) self.view['window_appl'].connect('delete-event', self.on_window_delete) self.__enable_generate() return
def __init__(self, model, view, config): Controller.__init__(self, model, view) self.config = config self.driveController = DriveController(model.driveModel, view.driveView) try: jsdevnum = self.config.get('joystick', 'jsdevnum') except ConfigParser.NoSectionError: jsdevnum = 0 self.jsController = JsController(model, view.jsView, jsdevnum) self.videoController = VideoController(model, view.videoView)
def __init__(self, model): Controller.__init__(self, model)
def __init__ (self, model, view): Controller.__init__ (self, model, view)
def __init__(self, model, view, jsdevnum): Controller.__init__(self, model, view) self.jsdevnum = jsdevnum self.joystick = None self.joystick_x = 0 self.joystick_y = 0