- choice = TconfigSelection(encoder, default = "3.1", choices = [("1.0", _("1.0")), ("2.0", _("2.0")),
- ("2.1", _("2.1")), ("2.2", _("2.2")), ("3.0", _("3.0")), ("3.1", _("3.1")),
- ("3.2", _("3.2")), ("4.0", _("4.0")), ("4.1", _("4.1")), ("4.2", _("4.2")),
- ("5.0", _("5.0")), ("low", _("low")), ("main", _("main")), ("high", _("high"))] )
+ level_choices = getChoices("level_choices")
+ if (len(level_choices) == 0):
+ level_choices = [("1.0", _("1.0")), ("2.0", _("2.0")),
+ ("2.1", _("2.1")), ("2.2", _("2.2")), ("3.0", _("3.0")), ("3.1", _("3.1")),
+ ("3.2", _("3.2")), ("4.0", _("4.0")), ("4.1", _("4.1")), ("4.2", _("4.2")),
+ ("5.0", _("5.0")), ("low", _("low")), ("main", _("main")), ("high", _("high"))]
+ choice = TconfigSelection(encoder, default = getDefault(level_choices, "3.1"), choices = level_choices )