RATIOS = ["0.5", "1", "2"] self.add_label("Rect", {"type": "rect"}) self.add_label("FixedRatioRect", {"type": "ratiorect", "_ratio": RATIOS}) self.add_label("Point", {"type": "point"}) self.add_label("Polygon", {"type": "polygon"})