def populate_equipped(self):
        current = 1
        for i in self.player.get_equipped_techs():
            if i is None:
                continue

            try:
                name = i["content"]["name"]
                tech = self.assets.techs().get_tech(name)
                icon = QPixmap.fromImage(ImageQt(tech[1]))
                getattr(self.ui, "icon"+str(current)).setPixmap(icon.scaled(32, 32))
                getattr(self.ui, "icon"+str(current)).setToolTip(tech[0]["shortdescription"])
                self.techs[current-1] = new_tech_slot(tech[0]["techModule"])
                self.equip[current-1] = tech[0]["itemName"]
            except TypeError:
                logging.exception("Couldn't load tech")

            current += 1
dataset/ETHPy150Open wizzomafizzo/starcheat/starcheat/gui/techs.py/Techs.populate_equipped/original