Skip to content

Commit 4eab055

Browse files
author
Gerrishon
committed
update
1 parent de1e8b6 commit 4eab055

File tree

2 files changed

+55
-10
lines changed

2 files changed

+55
-10
lines changed

README.md

+54-9
Original file line numberDiff line numberDiff line change
@@ -389,28 +389,73 @@ Message Box dialog
389389
from quo.dialog import MessageBox
390390

391391
MessageBox(
392-
title="Message pop up window",
393-
text="Do you want to continue?\nPress ENTER to quit."
394-
)
392+
title='Message window',
393+
text='Do you want to continue?\nPress ENTER to quit.')
395394

396395
```
397-
![Message Box](https://github.com/scalabli/quo/raw/master/docs/images/messagebox.png)
396+
![Message Box](https://github.com/scalabli/quo/raw/master/docs/images/dialog/message.png)
398397

399398
**Example 2**
400399

401-
Input Box dialog
400+
- Input dialog
402401

403402
```python
404403

405404
from quo.dialog import InputBox
406405

407406
InputBox(
408-
title="InputBox shenanigans",
409-
text="What Country are you from? :"
410-
)
407+
title='PromptBox Shenanigans',
408+
text='What Country are you from?:')
411409

412410
```
413-
![Prompt Box](https://github.com/scalabli/quo/raw/master/docs/images/promptbox.png)
411+
![Input Box](https://github.com/scalabli/quo/raw/master/docs/images/dialog/input.png)
412+
413+
414+
- Multiline Input dialog
415+
416+
```python
417+
418+
from quo.dialog import InputBox
419+
420+
InputBox(
421+
title='PromptBox Shenanigans',
422+
text='What Country are you from?:',
423+
multiline=True)
424+
425+
```
426+
![Input Box](https://github.com/scalabli/quo/raw/master/docs/images/dialog/multiline.png)
427+
428+
- Password Input dialog
429+
430+
```python
431+
432+
from quo.dialog import InputBox
433+
434+
InputBox(
435+
title='PromptBox Shenanigans',
436+
text='What Country are you from?:',
437+
hide=True)
438+
439+
```
440+
![Input Box](https://github.com/scalabli/quo/raw/master/docs/images/dialog/password.png)
441+
442+
- Radiolist
443+
444+
```python
445+
446+
from quo.dialog import RadiolistBox
447+
448+
RadiolistBox(
449+
title="RadioList dialog example",
450+
text="Which breakfast would you like ?",
451+
values=[
452+
("breakfast1", "Eggs and beacon"),
453+
("breakfast2", "French breakfast"),
454+
("breakfast3", "Equestrian breakfast")
455+
])
456+
457+
```
458+
![Radiolist](https://github.com/scalabli/quo/raw/master/docs/images/dialog/radiolist1.png)
414459

415460
Read more on [Dialogs](https://quo.readthedocs.io/en/latest/dialogs.html)
416461

docs/dialogs.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ input box. It will return the user input as a string.
3939
text='What Country are you from?:')
4040
.. image:: ./images/dialog/input.png
4141

42-
The ``multiline=True`` option can be passed turn this into a multiline Input box
42+
The ``multiline=True`` parameter can be passed to turn this into a multiline Input box
4343

4444
.. image:: ./images/dialog/multiline.png
4545
The ``hide=True`` option can be passed to the :func:`~quo.dialog.InputBox` function to turn this into a password input box.

0 commit comments

Comments
 (0)