8000 Merge pull request #941 from codytrey/master · mostafahf/python-for-android@8731695 · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit 8731695

Browse files
authored
Merge pull request kivy#941 from codytrey/master
Update apis.rst
2 parents 9fa15b7 + 86ab0a2 commit 8731695

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)
0