Пример #1
0
 def display_student_grades(grades_list: dict):
     if not grades_list:
         print(
             ColorfulView.format_string_to_blue(
                 'You have no added grades !'))
     print(ColorfulView.format_string_to_yellow('Assignments with grades:'))
     for key, value in grades_list.items():
         print('Assignment name: {}; Grade: {}'.format(key, value))
Пример #2
0
 def new_assignment_input(is_title=True):
     if is_title:
         input_message = ColorfulView.format_string_to_yellow(
             'Name your assignment: ')
     else:
         input_message = ColorfulView.format_string_to_blue(
             'Describe this assignment: ')
     string = input(input_message)
     return string
Пример #3
0
    def display_user_grades(assignments: list):
        os.system('clear')
        print(ColorfulView.format_string_to_green('Your grades:'))
        for index, assignment in enumerate(assignments):
            index += INDEX_INCREMENTOR
            print(
                ColorfulView.format_string_to_blue(str(index) + '. ') +
                assignment)

        input('\nPress ENTER to continue')
Пример #4
0
    def display_menu(name_of_user):
        """
        Method display menu of Employee account.

        Param: str ---> object of Employee Class, attribute name
        Return: str
        """
        welcome = ColorfulView.format_string_to_yellow(
            '\tWelcome {}, this is your account options.\n'.format(
                name_of_user))
        title = ColorfulView.format_string_to_blue('\nChoose option:\n')
        options = '\n1. Show students\n2. Promote user to student\n3. Ask for send email about cofee fundarising\n0. Log out'

        print(welcome, title, options)

        return input()