Exemplo n.º 1
0
 def setmode(self, i):
     """Set the type of label, if it is associated to an object."""
     self.labeltype = [
         "Custom", "Name", "Label", "Position", "Length", "Area", "Volume",
         "Tag", "Material"
     ][i]
     utils.setParam("labeltype", self.labeltype)
Exemplo n.º 2
0
 def setmode(self, i):
     """Set the type of label, if it is associated to an object."""
     from draftobjects.label import get_label_types
     self.labeltype = get_label_types()[i]
     utils.setParam("labeltype", self.labeltype)