Commit Graph

1506 Commits

Author SHA1 Message Date
RobertF fd12906efa
Android Lifecycle convergence (#7989)
* 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>
2022-10-01 11:27:05 +02:00
luzpaz 2efdc26461
Fix typos (#7915)
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`
2022-08-24 20:05:42 +02:00
Mirko Galimberti 6d3c7ba105
Fixes NO DOCUMENTATION (module kivy.uix.recycleview) (#7916) 2022-08-16 15:34:56 +02:00
Paul Cochrane 97a6d0bb82
Add missing closing paren in hint text (#7928)
The hint at the end of the pong tutorial associated with making the game
end after a certain score was missing its closing parenthesis.
2022-07-28 16:07:45 +02:00
Cecil Curry 93ccd2058c
Documentation: bump Gentoo install instructions (#7870) 2022-04-25 21:46:01 +02:00
Mirko Galimberti b9939282c1
Add 2.1.0 changelog (#7831) 2022-03-06 08:15:12 +01:00
Alexander Lais 27dff1fadb
Use the `KIVY_RPI_VERSION` env variable to force the build of `egl_rpi` in non Raspi CI builds (#7804)
* 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>
2022-02-17 02:17:23 -05:00
Vibhakar Solanki 1390d54b3a
Merge branch 'master' into fix_gp_selectable 2022-02-13 21:38:25 +05:30
Vibhakar Solanki 68935bf6fa
Dark Theme support for docs (#7799)
* 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)
2022-02-12 22:39:02 +01:00
p0lygun 8948bf61b4 made Generic Prompt unselectable; fixes #7800 2022-02-13 03:00:16 +05:30
Vibhakar Solanki 0f5f8bfc21
made code examples user friendly; fixes #7720 [WIP] (#7790)
* 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
2022-02-06 13:40:05 +01:00
Mirko Galimberti 10dceb180b
Docs review before release 2.1.0 (#7773)
* Docs review - part 1

* Docs review - part 2

* Docs review - part 3

* Docs review - part 4

* Docs review - part 5

* Docs review - part 6

* Docs review - part 6 (Fixes linters automations :/ )

* Docs review - part 7

* Docs review - part 8
2022-01-30 17:57:33 +01:00
Mirko Galimberti 54c6f298c9 Add support for older Sphinx versions 2022-01-23 12:33:21 +01:00
Mirko Galimberti b79cd3cafc Improves docs on mobile, fixes duplicated getting started 2022-01-16 10:47:53 +01:00
Mirko Galimberti 7d12150ee7
Add support for Apple Silicon on CI/CD [build wheel osx] [build app osx] (#7678)
* Added support for universal2 wheels, and adds unit testing on our self-hosted Apple Silicon M1 runner

* Improve job name readability
2022-01-04 19:12:39 +01:00
Richard Larkin 9a1794e8c3
Merge pull request #7614 from wxllow/patch-1
Fix install command for zsh
2021-10-05 19:35:42 +02:00
Geo Maciolek 0ca10a893f
Update line number refs (& remove one unclear one) (#7625) 2021-09-19 17:40:08 +02:00
Mirko b1b3492d4e
Fixes missing documentation_options (#7624) 2021-09-17 21:39:47 +02:00
Mirko 6a99134255
Sphinx: Use class instead of instance in add_lexer + Fixes search on sphinx>1.7.9 (#7623)
* Use class instead of instance in add_lexer

* Fixes search with newer sphinx
2021-09-14 21:27:19 +02:00
willow 32a71278fd
Fix install command for zsh
`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
2021-09-05 12:21:39 -04:00
oshotton 31ec7df0e6 Fix missing word in doc/guide/events.rst 2021-08-04 15:16:13 +01:00
outdooracorn c0665964a3
Fix line number references in basic.rst (#7580) 2021-07-24 01:07:05 +02:00
meow464 143ba31a0a
Typo on docs, missing word (#7561) 2021-06-26 10:15:24 +02:00
meow464 9eb4bded17
Comment references the wrong layout (#7560)
There is no BoxLayout anywhere, it should be FloatLayout.
2021-06-24 23:50:58 +02:00
Anthon van der Neut fe1ab549e0
Update events.rst (#7497)
Remove the Python 2 compatible use of `super()`, it still works in Python 3, but is no longer idiomatic for  a framework supporting Python 3.5-3.9.
2021-04-25 12:39:22 -04:00
luzpaz db86b06b9b
Fix misc. typos (#7432)
* Fix misc. typos

Found via `codespell`
2021-03-18 22:06:43 +01:00
Ilya Kochankov e3459c0c1f replace --build-bottle with --build-from-source 2021-02-27 18:49:02 +03:00
Tomas Krizek d18e6086d7 python 3: use print() in docs, comment and generated code
Since kivy has moved on to Python 3, let's use the print() function
instead of statement in docs etc.
2021-02-05 22:37:32 +01:00
André Sbrocco Figueiredo a02efa311f
TabbedPanel: Doc calling `switch_to` from `__init__` (#7342)
* 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>
2021-01-24 04:45:34 -05:00
pwoolvett 88dee323b7
Fix/disable kivy no args (#7326)
* 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>
2021-01-11 19:16:20 -05:00
Lindström Mathias 3e37301b29
Doc cleanups (#7295)
* ⬆️ Removed the last part of pw.js/pw.php

* ⬆️ Removed the last part of pw.js/pw.php
2020-12-29 10:53:27 -05:00
Mirko Galimberti 36582222cd Update docs for kivy-ios 2020-12-25 16:50:37 +01:00
Eero af Heurlin df5b2c16d5
Add pre-commit.com framework hooks (#7176)
* 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
2020-12-09 22:48:48 -05:00
Matthew Einhorn a8d76ce04e Add 2.0.0 changelog. 2020-12-09 04:56:51 -05:00
matham b714003ffb
Merge pull request #7241 from matham/install
Docs: Add changelog to docs
2020-11-28 17:43:08 -05:00
Matthew Einhorn 036d86eb46 Add changelog and fix install table. 2020-11-28 17:40:57 -05:00
matham 2195a7881f
Merge pull request #7240 from matham/install
Docs: Re-write install docs.
2020-11-28 03:56:08 -05:00
Matthew Einhorn 1e03ffd3a7 Re-write install docs. 2020-11-28 03:36:39 -05:00
Asad Rauf 7cc8942029 minor typo fix in layout docs 2020-11-16 19:22:14 +05:00
matham 9ac3c9a70b
Use python3 if it's present. 2020-10-16 13:41:57 -04:00
matham d13e221671
Generate Kivy.app on the CI (#7080)
* Re-enable osx app build[build app osx]

* app directory should be in root [build app osx]

* Use re-worked sdk syntax. [build app osx]

* No need to build kivy. [build app osx]

* Use kivy version, not ref name. [build app osx]

* Include examples and use fixes syntax. [build app osx]

* Split app create and test. [build app osx]

* Split app create and test. [build app osx]

* Externalize kivy-examples. [build app osx] [build wheel]

* Externalize kivy-examples. [build app osx] [build wheel]

* No need to download pip manually anymore. [build app osx]

* Fix osx font test from seg-faulting. [build app osx]

* [build app osx] [build wheel osx]

* Don't copy in recursive cycles. [build app osx]

* Don't copy in recursive cycles. [build app osx]

* Set gst regsitery to fix test.

* Update docs. [build app osx] [build wheel]

* Fix gstreamer path [build app osx]

* Use mock only when testing [build app osx][build wheel osx]

* There's no reason to use older xcode, but specifically use osx 10.15. [build app osx]

* Set the gst variables to fix gst not working. [build app osx]

* Set the gst variables to fix gst not working. [build app osx]

* Set the gst variables to fix gst not working. [build app osx][build wheel osx]

* Fix broken tests. [build app osx][build wheel osx]

* Add missing hidapi library to fix osx wheel.

* Fix app environment. [build app osx] [build wheel osx]

* Need to resign hidapi after changing paths. [build app osx] [build wheel osx]
2020-09-15 21:50:34 -04:00
fruitbat a3603027aa Remove duplicate python3-pip 2020-07-05 12:34:03 +02:00
fruitbat b9820c9391 ⬆️ Update the dev installation instructions 2020-07-04 09:51:08 +02:00
matham 6cd0e97310
Merge pull request #6924 from Julian-O/patch-1
Buildozer is now in Beta.
2020-06-14 12:41:06 -04:00
sanderland 0df48543a6
Improvements to kv lang docs (#6927)
* logger fix

* pep

* encoding, test

* black

* mock locale

* fix

* tests / encoding as param

* less 한국어

* improve documentation for kv lang

* link?

* link mod properly
2020-06-08 15:45:48 -04:00
Julian 2c3a5b44d4
Buildozer is now in Beta.
Updating reference to Buildozer's project status.
2020-06-08 02:19:15 +10:00
Andre Miras f62d4b37ba Migrates to the new install procedure
It's now possible to install via `pip install kivy-ios`.
Also drops Python 2 support and minor consistency fixes.
2020-05-07 00:38:21 +02:00
Kristian Sloth Lauszus 5663f8d836 Make it clear that SDL2 should not be installed with apt if the user has compiled it manually 2020-03-16 00:35:38 +01:00
Kristian Sloth Lauszus f1d82f0e03 Updated Raspberry Pi 4 documentation on how to ensure that the renderer is hardware accelerated 2020-03-14 20:40:55 +01:00
Kristian Sloth Lauszus fa19d95497
Kivy now works on the Raspberry Pi 4 without X11 (#6769)
* 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
2020-03-13 11:15:45 -04:00