|
52 | 52 | `exit_on_escape`: int, 0 or 1
|
53 | 53 | Enables exiting kivy when escape is pressed.
|
54 | 54 | 0 is disabled, 1 is enabled.
|
| 55 | + `pause_on_minimize`: int, 0 or 1 |
| 56 | + If set to `1`, the main loop is paused and the `on_pause` event |
| 57 | + is dispatched when the window is minimized. Defaults to `0` |
| 58 | + on desktop and `1` on mobile. |
55 | 59 | `keyboard_layout`: string
|
56 | 60 | Identifier of the layout to use.
|
57 | 61 | `keyboard_mode`: string
|
|
229 | 233 | `borderless` has been added to the graphics section.
|
230 | 234 | The `fake` option of `fullscreen` in the graphics section has been
|
231 | 235 | deprecated, use the `borderless` option instead.
|
| 236 | + `pause_on_minimize` has been added to the kivy section. |
232 | 237 |
|
233 | 238 | .. versionchanged:: 1.8.0
|
234 | 239 | `systemanddock` and `systemandmulti` has been added as possible values for
|
|
269 | 274 | _is_rpi = exists('/opt/vc/include/bcm_host.h')
|
270 | 275 |
|
271 | 276 | # Version number of current configuration format
|
272 |
| -KIVY_CONFIG_VERSION = 11 |
| 277 | +KIVY_CONFIG_VERSION = 12 |
273 | 278 |
|
274 | 279 | Config = None
|
275 | 280 | '''Kivy configuration object. Its :attr:`~kivy.config.ConfigParser.name` is
|
@@ -731,11 +736,14 @@ def name(self, value):
|
731 | 736 |
|
732 | 737 | elif version == 9:
|
733 | 738 | Config.setdefault('kivy', 'exit_on_escape', '1')
|
734 |
| - |
| 739 | + |
735 | 740 | elif version == 10:
|
736 | 741 | Config.set('graphics', 'fullscreen', '0')
|
737 | 742 | Config.setdefault('graphics', 'borderless', '0')
|
738 | 743 |
|
| 744 | + elif version == 11: |
| 745 | + Config.setdefault('kivy', 'pause_on_minimize', '1') |
| 746 | + |
739 | 747 | #elif version == 1:
|
740 | 748 | # # add here the command for upgrading from configuration 0 to 1
|
741 | 749 | #
|
|
0 commit comments