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()
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')