コード例 #1
0
 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))
コード例 #2
0
 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))
コード例 #3
0
 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))
コード例 #4
0
 def handle_button_rename(self):
     self.master.screen_push(
         AlphaScreen(self.master,
                     label="Name for Recipe:",
                     defval=self.recipe.getName(),
                     callback=self.rename_complete))