Skip to content

Commit

Permalink
App.on_pause no longer returns False, add better doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafał Kaczor authored Mar 20, 2017
1 parent 3516b45 commit 2c5f8a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kivy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def on_stop(self):
def on_pause(self):
'''Event handler called when Pause mode is requested. You should
return True if your app can go into Pause mode, otherwise
return False and your application will be stopped (the default).
return False and your application will be stopped.
You cannot control when the application is going to go into this mode.
It's determined by the Operating System and mostly used for mobile
Expand All @@ -868,6 +868,8 @@ def on_pause(self):
The default return value is True.
.. versionadded:: 1.1.0
.. versionchanged:: 1.10.0
The default return value is now True.
'''
return True

Expand Down

0 comments on commit 2c5f8a4

Please sign in to comment.