Files
sloth/std_config.py
T
Martin Baeuml d058b6057a - seperate items and inserters
- use dicts for ITEMS and INSERTERS
2011-05-12 16:57:28 +02:00

40 lines
778 B
Python

import items
from loaders import FeretLoader, RectIdLoader
from bboxitem import *
RATIOS = ["0.5", "1", "2"]
LABELS = (
("Rect", {"type" : "rect"}),
("FixedRatioRect", {"type": "ratiorect", "_ratio": RATIOS}),
("Point", {"type": "point"}),
("Polygon", {"type": "polygon"}),
("BodyBBox", {"type": "bodybbox"}),
)
HOTKEYS = (
("", "Rect", "r"),
("", "Point", "p"),
("", "Polygon", "o"),
("", "BodyBBox", "b")
)
ITEMS = {
"rect": items.RectItem,
"point": items.PointItem,
"bodybbox": BodyBoundingboxItem,
}
INSERTERS = {
"rect": items.RectItemInserter,
"bodybbox": BodyBoundingboxItemInserter,
}
LOADERS = (
('txt', RectIdLoader),
)
PLUGINS = (
)