개정판 9cf934a8
issue #563: fix texts
Change-Id: I00c6f8efdde9572eb196a4f4b10a410ffe083215
DTI_PID/DTI_PID/Shapes/QEngineeringOPCItem.py | ||
---|---|---|
164 | 164 |
return sorted([x for x in self.associations() if issubclass(type(x), QEngineeringTextItem)], key=lambda attr: attr.loc[0], reverse=True) # sort by x coordinate by descending |
165 | 165 |
elif abs(4.71 - self.angle) < allowed_error: |
166 | 166 |
return sorted([x for x in self.associations() if issubclass(type(x), QEngineeringTextItem)], key=lambda attr: attr.loc[0]) # sort by x coordinate |
167 |
else: |
|
168 |
return sorted([x for x in self.associations() if issubclass(type(x), QEngineeringTextItem)], key=lambda attr: attr.loc[1]) # sort by y coordinate |
|
167 | 169 |
|
168 | 170 |
''' |
169 | 171 |
@brief generate xml code for attribute |
내보내기 Unified diff