Exemple #1
0
 def _set_item_data(self, item: qw.QGraphicsItem) -> None:
     parent_stack = tuple(e for e, props in self.entity_stack[:-1])
     current_entity = self.current_entity
     if isinstance(item, list):
         for item_ in item:
             item_.setData(CorrespondingDXFEntity, current_entity)
             item_.setData(CorrespondingDXFParentStack, parent_stack)
     else:
         item.setData(CorrespondingDXFEntity, current_entity)
         item.setData(CorrespondingDXFParentStack, parent_stack)
Exemple #2
0
 def _set_item_data(self, item: qw.QGraphicsItem) -> None:
     item.setData(CorrespondingDXFEntity, self.current_entity)
     item.setData(CorrespondingDXFEntityStack, self.current_entity_stack)
Exemple #3
0
 def _set_item_data(self, item: qw.QGraphicsItem) -> None:
     item.setData(CorrespondingDXFEntity, self.current_entity)
     parent_stack = tuple(e for e, props in self.entity_stack[:-1])
     item.setData(CorrespondingDXFParentStack, parent_stack)