コード例 #1
0
ファイル: State.py プロジェクト: openspaceaarhus/Foodputer
 def handle_barcode(self, str):
     putil.trace("ding")
     item = Products.get_from_barcode(str)
     if item == None:
         GUI.warn("Unknown product cannot buy here")
         return
     GUI.info("Added {} - \"{}\"".format(item.name, item.text))
     Foodputer.add_item(item)