def create_airfoil(self): j = 0 for index in range(self.QList_View.count()): name = self.QList_View.item(index).text() if 'airfoil' in name: j += 1 airfoil = BezierProfile2D.compute_naca(4412) airfoil.name = 'airfoil' + str(j) new_item = QAirfoil_item(airfoil) self.QList_View.addItem(new_item) self.QList_View.setCurrentItem(new_item)
def create_airfoil(self): j = 0 for index in range(self.QList_View.count()): name = self.QList_View.item(index).text() if "airfoil" in name: j += 1 airfoil = BezierProfile2D.compute_naca(4412) airfoil.name = "airfoil" + str(j) new_item = QAirfoil_item(airfoil) self.QList_View.addItem(new_item) self.QList_View.setCurrentItem(new_item)