Is it possible to customize characters used in Pyinquirer's list feature?

Viewed 9

I lately played around with PyInquirer and it's an awesome library. I just made a small interface to try some things and now I am stuck here:

I want to customize the interface so it does not show the two blue characters anymore. The first one is the blue question mark in front of the message: "--> select an option" and the second one is a blue '❯' which is shown as the the second blue character, a question mark in a rectangle. Both of them should just be erased, not edited or anything.

Is there a way to achieve this with PyInquirer?

Thanks in advance!

(here is an image showing the 2 characters I am talking about: Image)

from PyInquirer import prompt
from examples import custom_style_1

selection_one="selection1"
selection_two="selection2"
selection_three="selection3"


questions=[{
    'type': 'list',
    'name': '!',
    'message': "--> select an option",
    'choices': [selection_one, selection_two, selection_three]
}]

def main():
    answers=prompt(questions, style=custom_style_1)
    if answers.get("user_option")=="sum":
        pass #code to continue with comes here
    elif answers.get("user_option")=="difference":
        pass #code to continue with comes here
    elif answers.get("user_option")=="product":
        pass #code to continue with comes here

if __name__=="__main__":
    main()
0 Answers
Related