Пример #1
0
    def __init__(self, screen):
        """
        Constructor
        """
        self.__screen = screen
        self.__msg  = Textbox(70, 8, "", scroll = 1, wrap = 1)
        self.__acceptButton = ButtonBar(self.__screen, [(LICENSE_BUTTON_ACCEPT.localize(), ACCEPT_LABEL)])
        self.__declineButton = ButtonBar(self.__screen, [(LICENSE_BUTTON_DECLINE.localize(), DECLINE_LABEL)])
        self.__defaultButton = ButtonBar(self.__screen, [(OK.localize(), OK_LABEL), (BACK.localize(), BACK_LABEL)])

        self.__grid = GridForm(self.__screen, WELCOME_IBM_POWERKVM.localize() % STR_VERSION, 1, 5)
        self.__grid.add(self.__msg, 0, 0)
Пример #2
0
    def __init__(self, screen):
        """
        Constructor

        @type  screen: SnackScreen
        @param screen: SnackScreen instance
        """
        self.__screen = screen

        self.__msg = TextboxReflowed(40, "Menu")
        self.__list = Listbox(5, returnExit=1)

        self.__grid = GridForm(self.__screen, WELCOME_IBM_POWERKVM.localize() % STR_VERSION, 1, 2)
        self.__grid.add(self.__msg, 0, 0)
        self.__grid.add(self.__list, 0, 1, (0,1,0,0))
Пример #3
0
    def __init__(self, screen):
        """
        Constructor

        @type  screen: SnackScreen
        @param screen: SnackScreen instance
        """
        self.__screen = screen

        self.__msg = TextboxReflowed(40,
                SELECT_ONE_OF_THE_OPTIONS_BELOW.localize())
        self.__list = Listbox(5, returnExit=0)

        self.__buttonsBar = ButtonBar(self.__screen, [(OK.localize(), "ok"),
            (BACK.localize(), "back")])

        self.__grid = GridForm(self.__screen, WELCOME_IBM_POWERKVM.localize() % STR_VERSION, 1, 3)
        self.__grid.add(self.__msg, 0, 0)
        self.__grid.add(self.__list, 0, 1, (0,1,0,0))
        self.__grid.add(self.__buttonsBar, 0, 2, (0,1,0,0))


        self.__screen.pushHelpLine(HELP_LINE.localize())