Files
ServerSync/lib/questionary/prompts/__pycache__/rawselect.cpython-314.pyc

58 lines
3.0 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
9<><39>i<EFBFBD> <00><00><><00>^RIHt^RIHt^RIHt^RIHt^RIHt^RIHt^RIH t ^RIH
t
^R I H t ^R
I Ht^R IHtR ] ]
R 3R RlltR #)<0F>)<01>Any)<01>Dict)<01>Optional)<01>Sequence)<01>Union)<01>Style)<01>DEFAULT_QUESTION_PREFIX)<01>DEFAULT_SELECTED_POINTER<45><01>select)<01>Choice)<01>QuestionNc<00><00>V^8<>dQhR\R\\\\\\\
3,3,,R\ \,R\R\ \,R\ \,R\
R\/#) <09><00>message<67>choices<65>default<6C>qmark<72>pointer<65>style<6C>kwargs<67>return) <09>strrrr rrrrr)<01>formats"<22>D/tmp/pip-target-wqrk2shd/lib/python/questionary/prompts/rawselect.py<70> __annotate__rs}<00><00>?<06>?<06> <10>?<06> <15>e<EFBFBD>C<EFBFBD><16><14>c<EFBFBD>3<EFBFBD>h<EFBFBD><1E>7<>8<> 9<>?<06><16>c<EFBFBD>]<5D>?<06> <0F> ?<06>
<16>c<EFBFBD>]<5D> ?<06> <14>E<EFBFBD>?<3F> ?<06><12>?<06><0E>?<06>c <04>B<00>\P!VVVVVV3RRRR/VB#)u<>Ask the user to select one item from a list of choices using shortcuts.
The user can only select one option.
Example:
>>> import questionary
>>> questionary.rawselect(
... "What do you want to do?",
... choices=[
... "Order a pizza",
... "Make a reservation",
... "Ask for opening hours"
... ]).ask()
? What do you want to do? Order a pizza
'Order a pizza'
.. image:: ../images/rawselect.gif
This is just a really basic example, the prompt can be customised using the
parameters.
Args:
message: Question text.
choices: Items shown in the selection, this can contain :class:`Choice` or
or :class:`Separator` objects or simple items as strings. Passing
:class:`Choice` objects, allows you to configure the item more
(e.g. preselecting it or disabling it).
default: Default return value (single value).
qmark: Question prefix displayed in front of the question.
By default this is a ``?``.
pointer: Pointer symbol in front of the currently highlighted element.
By default this is a ``»``.
Use ``None`` to disable it.
style: A custom color and style for the question parts. You can
configure colors as well as font types for different elements.
Returns:
:class:`Question`: Question instance, ready to be prompted (using ``.ask()``).
<EFBFBD> use_shortcutsT<73>use_arrow_keysFr )rrrrrrrs&&&&&&,r<00> rawselectr!sF<00><00>j <12>=<3D>=<3D><0F><0F><0F> <0A><0F> <0A>
<06><1B>
<06><1D>
<06> <11>
<06>
r)<12>typingrrrrr<00>prompt_toolkit.stylesr<00>questionary.constantsr r
<00>questionary.promptsr <00>questionary.prompts.commonr <00>questionary.questionrr!<00>rr<00><module>r)s><00><01><16><17><1B><1B><18>'<27>9<>:<3A>&<26>-<2D>)<29> "<22>(<28>5<>!<21> ?<06>?r