Ejemplo n.º 1
0
 def _cellAccelEdit(self, cell, path, accel_key, accel_mods, code, model):
     """ Accelerator is modified """
     self.show_input = gtk.accelerator_get_label(accel_key, accel_mods)
     self.new_task_binding = gtk.accelerator_name(accel_key, accel_mods)
     if check_invalidity(self.new_task_binding, accel_key, accel_mods):
         self._show_warning(gtk.Button(_("Warning")), self.show_input)
         return
     self.binding_backup = self.new_task_binding
     iter = model.get_iter(path)
     model.set_value(iter, 1, self.show_input)
     save_new_binding(self.new_task_binding, self.button.get_active())
Ejemplo n.º 2
0
 def _cellAccelEdit(self, cell, path, accel_key, accel_mods, code, model):
     """ Accelerator is modified """
     self.show_input = gtk.accelerator_get_label(accel_key, accel_mods)
     self.new_task_binding = gtk.accelerator_name(accel_key, accel_mods)
     if check_invalidity(self.new_task_binding, accel_key, accel_mods):
         self._show_warning(gtk.Button(_("Warning")), self.show_input)
         return
     self.binding_backup = self.new_task_binding
     iter = model.get_iter(path)
     model.set_value(iter, 1, self.show_input)
     save_new_binding(self.new_task_binding, self.button.get_active())