예제 #1
0
    def _get_unconditional_input(self, data):  # pylint: disable=unused-argument
        """Callback when user wants to set unconditional input.

        :param data: can be passed when adding callback in container (not used here)
        :type data: anything
        """
        dialog = Dialog("Unconditional input", conditions=[self._check_user_input])

        self._unconditional_input = dialog.run()
예제 #2
0
    def _change_lines(self, data):  # pylint: disable=unused-argument
        """Callback when user wants to input new lines.

        :param data: can be passed when adding callback in container (not used here)
        :type data: anything
        """
        dialog = Dialog("Lines")
        self._entered_text = dialog.run()
        lines = self._entered_text.splitlines(True)
        self._hello_world_module.SetLines(lines)
    def _get_unconditional_input(self, data):
        """Callback when user wants to set unconditional input.

        :param data: can be passed when adding callback in container (not used here)
        :type data: anything
        """

        dialog = Dialog("Unconditional input", conditions=[self._check_user_input])

        self._unconditional_input = dialog.run()
예제 #4
0
    def _get_reserve_amount(self, data):
        text = "Reserve amount (%d - %d MB)" % (self._lower, self._upper)
        dialog = Dialog(title=text, conditions=[self._check_reserve_valid])

        self._addon_data.reserveMB = dialog.run()