Skip to content

Commit c5486a5

Browse files
committed
Update readme
1 parent 31cf778 commit c5486a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __init__(self, model, key_size=None, padding=5, height_ratio=None, allow_upp
113113
```
114114

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

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

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

192+
# Enable the keyboard, it will be displayed on next keyboard.draw() call.
193+
keyboard.enable()
194+
192195
# Return True if the keyboard is enabled (thus displayed at screen).
193196
keyboard.is_enabled()
194197

0 commit comments

Comments
 (0)