Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
anxuae committed Apr 24, 2021
1 parent 31cf778 commit c5486a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def __init__(self, model, key_size=None, padding=5, height_ratio=None, allow_upp
```

If the **key_size** or **height_ratio** parameters are not provided, they will be computed dynamically regarding of
the target surface the keyboard will be rendered into.
the target surface the keyboard will be rendered into (**height_ratio** is 50% by default).

In order to only display a numerical ``Vkeyboard`` for example, you can use a custom layout like this :

Expand Down Expand Up @@ -189,6 +189,9 @@ keyboard.get_text()
# Set the current text (clear the existing one).
keyboard.set_text("Hello world!")

# Enable the keyboard, it will be displayed on next keyboard.draw() call.
keyboard.enable()

# Return True if the keyboard is enabled (thus displayed at screen).
keyboard.is_enabled()

Expand Down

0 comments on commit c5486a5

Please sign in to comment.