def item_add(self): try: for n in range(99): name = "Rezept %d" % (n+1) Recipe.getByName(name) except KeyError: pass self.master.screen_push(AlphaScreen(self.master, label="Name für neues Rezept:", defval=name, callback=self._item_add_finish))
def item_add(self): try: for n in range(99): name = "Feed %d" % (n + 1) SupplyFeed.getByName(name) except KeyError: pass self.master.screen_push( AlphaScreen(self.master, label="Name für neue Zutat:", defval=name, callback=self._item_add_finish))
def handle_button_rename(self): self.master.screen_push(AlphaScreen(self.master, label="Name for feed #%d:" % self.feed.motor_num, defval=self.feed.getName(), callback=self.rename_complete))
def handle_button_rename(self): self.master.screen_push( AlphaScreen(self.master, label="Name for Recipe:", defval=self.recipe.getName(), callback=self.rename_complete))