implement new config system

This commit is contained in:
Martin Baeuml
2011-05-06 16:26:57 +02:00
parent c8ffa0c588
commit 3f0aa1c99a
9 changed files with 216 additions and 55 deletions
+22 -18
View File
@@ -4,22 +4,26 @@ obj_type_choice2 = ["Peach", "Table", "Window"]
ID_choice = ["Martin", "Mika", "Alexander", "Lukas", "Tobias"]
ID_choice2 = ["Boris", "Manel", "Rainer", "Hua", "Hazim"]
self.add_label("Head", {"type": "rect",
"class": "head",
"id": ID_choice})
self.add_label("Left Eye", {"type": "point",
"class": "left_eye",
"id": ID_choice,
"obj_type": obj_type_choice})
self.add_label("Right Eye", {"type": "point",
"class": "right_eye",
"id": ID_choice2,
"obj_type": obj_type_choice2})
self.add_label("Left Hand", {"type": "rect",
"class": "left_hand",
"obj_type": obj_type_choice})
self.add_label("Right Hand", {"type": "rect",
"class": "right_hand"})
LABELS = (
("Head", {"type": "rect",
"class": "head",
"id": ID_choice}),
("Left Eye", {"type": "point",
"class": "left_eye",
"id": ID_choice,
"obj_type": obj_type_choice}),
("Right Eye", {"type": "point",
"class": "right_eye",
"id": ID_choice2,
"obj_type": obj_type_choice2}),
("Left Hand", {"type": "rect",
"class": "left_hand",
"obj_type": obj_type_choice}),
("Right Hand", {"type": "rect",
"class": "right_hand"}),
)
self.add_hotkey("", "Head", "h")
self.add_hotkey("id", "Martin", "CTRL+m")
HOTKEYS = (
("", "Head", "h"),
("id", "Martin", "CTRL+m"),
)