def register_adapters(self): self.adapt("name") self.adapt("author") self.adapt("email") self.adapt("complex") self.adapt("dist_gtkmvc", "cb_gtkmvc") self.adapt("copyright") self.adapt("glade") a = Adapter(self.model, "destdir") a.connect_widget(self.view['filechooserbutton'], gtk.FileChooser.get_current_folder, lambda w, p: w.set_current_folder(os.path.abspath(p)), "current-folder-changed") self.adapt(a) return
def register_adapters(self): self.adapt("name") self.adapt("author") self.adapt("email") self.adapt("complex") self.adapt("dist_gtkmvc", "cb_gtkmvc") self.adapt("copyright") self.adapt("glade") a = Adapter(self.model, "destdir") a.connect_widget(self.view['filechooserbutton'], gtk.FileChooser.get_current_folder, lambda w,p: w.set_current_folder(os.path.abspath(p)), "current-folder-changed") self.adapt(a) return
def register_adapters(self): a = Adapter(self.model, 'joy_x') a.connect_widget(self.view['label_js_x'], setter=self.joystick_setter) self.adapt(a) a = Adapter(self.model, 'joy_y') a.connect_widget(self.view['label_js_y'], setter=self.joystick_setter) self.adapt(a)
def register_adapters(self): ad = Adapter(self.model.settings, "login") ad.connect_widget(self.view["login"]) ad = Adapter(self.model.settings, "pwd") ad.connect_widget(self.view["passwd"])
def register_adapters(self): a = Adapter(self.model, 'estop_act') a.connect_widget(self.view['label_estop_act'], setter=self.estop_setter) self.adapt(a) a = Adapter(self.model, 'estop_cmd') a.connect_widget(self.view['label_estop_cmd'], setter=self.estop_setter) self.adapt(a) a = Adapter(self.model, 'select_act') a.connect_widget(self.view['label_select_act'], setter=self.select_setter) self.adapt(a) a = Adapter(self.model, 'select_cmd') a.connect_widget(self.view['label_select_cmd'], setter=self.select_setter) self.adapt(a) a = Adapter(self.model, 'moving') a.connect_widget(self.view['label_drivestatus'], setter=self.drivestatus_setter) self.adapt(a) a = Adapter(self.model, 'xpos') a.connect_widget(self.view['label_drive_x'], setter=self.drivevalues_setter) self.adapt(a) a = Adapter(self.model, 'ypos') a.connect_widget(self.view['label_drive_y'], setter=self.drivevalues_setter) self.adapt(a) a = Adapter(self.model, 'xval') a.connect_widget(self.view['label_raw_x'], setter=self.drivevalues_setter) self.adapt(a) a = Adapter(self.model, 'yval') a.connect_widget(self.view['label_raw_y'], setter=self.drivevalues_setter) self.adapt(a)
def register_adapters(self): ad = Adapter(self.model, "jid") ad.connect_widget(self.view["jidlabel"])
def register_view(self, view): #self.model.requestCalibration() a = Adapter(self.model, 'cal_current_x') a.connect_widget(self.view['adj_x']) self.adapt(a) a = Adapter(self.model, 'cal_current_y') a.connect_widget(self.view['adj_y']) self.adapt(a) a = Adapter(self.model, 'cal_eeprom_x') a.connect_widget(self.view['lbl_eeprom_x']) self.adapt(a) a = Adapter(self.model, 'cal_eeprom_y') a.connect_widget(self.view['lbl_eeprom_y']) self.adapt(a)