self.__engines.add(engine)
self.scroll_to_cell(self.__model[0].path, None)
+ def append_engine(self, engine):
+ if engine == None or engine in self.__engines:
+ return
+ iter = self.__model.append(None)
+ self.__model.set(iter, 0, engine)
+ self.__engines.add(engine)
+ self.scroll_to_cell(self.__model[-1].path, None)
+
def remove_engine(self):
iter = self.get_selected_iter()
if iter == None:
button = self.__xml.get_widget("button_engine_add")
button.connect("clicked",
- lambda *args:self.__treeview.prepend_engine(self.__combobox.get_active_engine()))
+ lambda *args:self.__treeview.append_engine(self.__combobox.get_active_engine()))
button = self.__xml.get_widget("button_engine_remove")
button.connect("clicked", lambda *args:self.__treeview.remove_engine())
button = self.__xml.get_widget("button_engine_up")