def __init__(self, uuidx, name, printer=printers.Default): if type(uuidx) == type("hello"): self.uuid = uuid_to_list(uuidx) else: self.uuid = uuidx self.name = name self.printer = printer() self.suuid = printers.print_uuid(self.uuid)
def editor_by_uuid(self, uuid): return self.attr[print_uuid(uuid)].editor()
def name_by_uuid(self, uuid): return self.attr[print_uuid(uuid)].name
def string_to_value_by_uuid(self, uuid, s): return self.attr[print_uuid(uuid)].string_to_value(s)
def value_to_string_by_uuid(self, uuid, value): return self.attr[print_uuid(uuid)].value_to_string(value)