* Android pause on back key/gesture
Replaces previous divergence between Android and Kivy state machines.
* Android exit app when on_pause returns False
Corrects previous behavior where Kivy app stops, but Android does not stop.
* stop() - set Android state
Let Kivy app state follow Android state.
* Add pause()
* typo
* Disambiguate
It is unclear it "default case" refers to existence of a return statement, or existence of a method.
* add versionadded
* pep8
* pep8
* pep8
* Update kivy/app.py
Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
* Update app.py
Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
Found via `codespell -q 3 -S ./doc/sources/changelog.rst -L als,ba,childrens,childs,co-ordinate,co-ordinates,datas,enew,everytime,inout,iself,quitted,tesselate,tesselated,tesselator,ths`
* Use the `USE_RPI` env variable to force the platform to `rpi`
* Update doc/sources/installation/installation-rpi.rst
Co-authored-by: Matt Einhorn <matt@einhorn.dev>
* Introduce new env variable `FORCE_RPI_VERSION` for forcing `egl_rpi`
instead of reusing `USE_RPI`, which has a different connotation.
* Update docs for `FORCE_RPI_VERSION` variable
* Update setup.py
Co-authored-by: Matt Einhorn <matt@einhorn.dev>
* Rename variable to `KIVY_RPI_VERSION`
Co-authored-by: Matt Einhorn <matt@einhorn.dev>
Co-authored-by: Matt Einhorn <matt@einhorn.dev>
* added dark theme css
* merged both theme files; removed dark.css
* removed unrequired variable
* add fuction to switch themes
* add button to switch themes; removed dark.css; load fresh.css after pygements.css;
* Update doc/sources/.templates/layout.html
* add jquery to keep the current 'active' element on API reference be always in center
* remove DRY voilations; beautify css
* removed unnecessary rules
* add toggle button to switch between themes
* add button callback; store prefered theme in localStorage
* made theme toggle button responsive
* improved alingment for mobile screens
* removed unnecessary css; added comments; formated css
* use prefers-color-scheme when localStorage is not initlized
* fix FOIT
* removed code to center active li element in api index (left side panel)
* fixes#7720; see sphinx-doc/sphinx#8320 for reference
* applied vendor prefix for safari
* use ::before pseudo element to make line numbers unselectable
* removed trim
* css cleanup; moved the rule to appropriate posotion
* more descriptive comment
`python -m pip install kivy[base] kivy_examples --no-binary kivy` throws the error `zsh: no matches found: kivy[base]`, you need to use `python -m pip install "kivy[base]" kivy_examples --no-binary kivy` instead
* Fixed reference
Previous reference didn't link to anywhere, and now it links to the
dev-install page.
* Added link for example usage
As discussed in the issue #3493, when calling this method from the
python script, it has to be scheduled to the next clock cycle.
* Update kivy/uix/tabbedpanel.py
Co-authored-by: matham <moiein2000@gmail.com>
Co-authored-by: matham <moiein2000@gmail.com>
* FIX: Disable `KIVY_NO_ARGS` depending on its value
This fix enables the environment value `KIVY_NO_ARGS` to be present but still
not disabling kivy cli parsing.
Before this, kivy only checked for `KIVY_NO_ARGS` environment variable to be
existent, wihout checking its value. Setting it to a "falsy" value (eg 0,
"false", etc) would still disable cli arg parsing, which is could be
misleading.
With this fix, only setting it to one of ('true', '1', 'yes') actually
disables it.
* TEST: passing unit tests
Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>
* implemented suggestions
* updated patchenv func
* added `KIVY_ENVS_TO_EXCLUDE = ('KIVY_UNITTEST', 'KIVY_PACKAGING')` because `__init__.py` treats them equal.
* removed remanent lower
* FIX: web edit typos
Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>
* PEP8
Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>
* FMT: auto (black) + unused imports
Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>
* PEP8
Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>
* FIX: nonzero exit on subprocess import
Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>
* Update kivy/tests/test_environ_cli.py
Co-authored-by: matham <moiein2000@gmail.com>
* Update kivy/tests/test_environ_cli.py
Co-authored-by: matham <moiein2000@gmail.com>
Co-authored-by: matham <moiein2000@gmail.com>
* Add pre-commit hooks for basic standards conformity checking
* These should not be marked as executable
* These lack shebangs so marking them executable did not do anyone any good
* add pre-commit to dev requirements
* use pre-commit framework for the hook
* Move the pre-commit config outside of root
As discusses in https://github.com/kivy/kivy/pull/7176#discussion_r511240059
* Document that pre-commit is used and how to skip checks if needed
* Mark the old hook script as deprecated
* logger fix
* pep
* encoding, test
* black
* mock locale
* fix
* tests / encoding as param
* less 한국어
* improve documentation for kv lang
* link?
* link mod properly
* Added 'KIVY_SDL_GL_ALPHA_SIZE' environmental variable, so X11 is not required when using SDL2 in a headless environment
Thanks to @ddimensia for figuring it out
* Updated the installation instructions for Raspberry Pi 4 headless installation on Raspbian Buster, as it no longer requires X11 to be installed
* Automatically set the SDL_GL_ALPHA_SIZE to 0 when running on a Raspberry Pi
* Set 'KIVY_SDL_GL_ALPHA_SIZE=0' when building using the CI, so cross compiling of the wheels works
* Make sure KIVY_SDL_GL_ALPHA_SIZE is an int