def refreshPanel(self, fit): if fit is not None: self.fit = fit fit_items = Price.fitItemsList(fit) sPrice = Price.getInstance() sPrice.getPrices(fit_items, self.processPrices) self.labelEMStatus.SetLabel("Updating prices...") self.refreshPanelPrices(fit) self.panel.Layout()
def refreshPanel(self, fit): if fit is not None: self.fit = fit typeIDs = Price.fitItemsList(fit) sMkt = Market.getInstance() sMkt.getPrices(typeIDs, self.processPrices) self.labelEMStatus.SetLabel("Updating prices...") else: self.labelEMStatus.SetLabel("") self.labelPriceShip.SetLabel("0.0 ISK") self.labelPriceFittings.SetLabel("0.0 ISK") self.labelPriceTotal.SetLabel("0.0 ISK") self._cachedFittings = self._cachedShip = self._cachedTotal = 0 self.panel.Layout()