Skip to content

Commit

Permalink
Merge pull request kivy#5069 from kivy/rafalo1333-on_pause_docs
Browse files Browse the repository at this point in the history
App.on_pause no longer returns False, add better doc
  • Loading branch information
dessant authored Mar 20, 2017
2 parents e9386de + 2c5f8a4 commit 8f2fef0
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 8f2fef0

Please sign in to comment.