Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrishon committed Mar 22, 2023
1 parent de1e8b6 commit 4eab055
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 10 deletions.
63 changes: 54 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,28 +389,73 @@ Message Box dialog
from quo.dialog import MessageBox

MessageBox(
title="Message pop up window",
text="Do you want to continue?\nPress ENTER to quit."
)
title='Message window',
text='Do you want to continue?\nPress ENTER to quit.')

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

**Example 2**

Input Box dialog
- Input dialog

```python

from quo.dialog import InputBox

InputBox(
title="InputBox shenanigans",
text="What Country are you from? :"
)
title='PromptBox Shenanigans',
text='What Country are you from?:')

```
![Prompt Box](https://github.com/scalabli/quo/raw/master/docs/images/promptbox.png)
![Input Box](https://github.com/scalabli/quo/raw/master/docs/images/dialog/input.png)


- Multiline Input dialog

```python

from quo.dialog import InputBox

InputBox(
title='PromptBox Shenanigans',
text='What Country are you from?:',
multiline=True)

```
![Input Box](https://github.com/scalabli/quo/raw/master/docs/images/dialog/multiline.png)

- Password Input dialog

```python

from quo.dialog import InputBox

InputBox(
title='PromptBox Shenanigans',
text='What Country are you from?:',
hide=True)

```
![Input Box](https://github.com/scalabli/quo/raw/master/docs/images/dialog/password.png)

- Radiolist

```python

from quo.dialog import RadiolistBox

RadiolistBox(
title="RadioList dialog example",
text="Which breakfast would you like ?",
values=[
("breakfast1", "Eggs and beacon"),
("breakfast2", "French breakfast"),
("breakfast3", "Equestrian breakfast")
])

```
![Radiolist](https://github.com/scalabli/quo/raw/master/docs/images/dialog/radiolist1.png)

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

Expand Down
2 changes: 1 addition & 1 deletion docs/dialogs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ input box. It will return the user input as a string.
text='What Country are you from?:')
.. image:: ./images/dialog/input.png

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

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

0 comments on commit 4eab055

Please sign in to comment.