def get_os_variant_page(self, screen): variants = [] typ = self.__config.get_os_type() for variant in Guest.list_os_variants(typ): variants.append([Guest.get_os_variant_label(typ, variant), variant, self.__config.is_os_variant(variant)]) self.__os_variants = snack.RadioBar(screen, variants) grid = snack.Grid(1, 1) grid.setField(self.__os_variants, 0, 0, anchorLeft=1) return [snack.Label("Choose the operating system version"), grid]
def set_os_type(self, typ): self.__os_type = typ self.__os_variant = Guest.list_os_variants(typ)[0]
def set_os_type(self, type): self.__os_type = type self.__os_variant = Guest.list_os_variants(type)[0]