Ejemplo n.º 1
0
 def setProductList(self):
     if self.radiobuttons.getcurselection() == 'Delayed': 
         self.radiobuttons.invoke('Routine')
     self.productlist.setlist(AvnParser.getTafProducts())
     try:
         self.productlist.setvalue(Globals.Products)
     except IndexError:
         return
     self.__loadSites()
Ejemplo n.º 2
0
 def listProducts(self):
     self.messagebar().resetmessages('systemerror')
     products = AvnParser.getTafProducts()
     if products:
         self.products.setlist(products)
         self.products.selectitem(0)
         self.products.invoke()
     else:
         self.products.clear()
         self.messagebar().message('usererror', 'Empty product list')