Skip to content

Commit 86ab0a2

Browse files
authored
Update apis.rst
1 parent 9fa15b7 commit 86ab0a2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/source/apis.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,15 @@ For instance, in your App class in Kivy::
196196

197197
class YourApp(App):
198198

199-
def build(self):
200-
Window.bind(on_keyboard=self.key_input)
201-
return Widget() # your root widget here as normal
202-
203-
def key_input(self, window, key, scancode, codepoint, modifier):
204-
if key == 27:
205-
return True # override the default behaviour
206-
# the key now does nothing
207-
return False
199+
def build(self):
200+
Window.bind(on_keyboard=self.key_input)
201+
return Widget() # your root widget here as normal
202+
203+
def key_input(self, window, key, scancode, codepoint, modifier):
204+
if key == 27:
205+
return True # override the default behaviour
206+
else: # the key now does nothing
207+
return False
208208

209209

210210
Pausing the App

0 commit comments

Comments
 (0)