Commit Graph

934 Commits

Author SHA1 Message Date
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 5e5180efff Fix some PEP8 issues. 2020-10-17 15:04:05 -04:00
Matthew Einhorn 9caf2d5ce3 Fix thread issue, and some polish. 2020-10-17 15:01:22 -04:00
Gabriel Pettier 76198f965b Add a "messenger" example for RecycleView
Manage dynamic sizes using the key_size but with some logic to update
the desired size depending on changing constraints.
Use parameters to the class to alter display depending on message
Simulate answers
2020-10-16 23:04:57 +02:00
Gabriel Pettier 8ac12586b5 pep8 fixes in recycleview examples 2020-10-16 21:20:07 +02:00
Gabriel Pettier d159670482 Recycleview Pull to refresh example 2020-10-16 21:13:43 +02:00
Gabriel Pettier f611be5118 Example to animate items of a RecycleView 2020-10-16 21:01:40 +02:00
Gabriel Pettier 2a8b0fe856 An infinite scrolling example using RecycleView 2020-10-16 20:48:23 +02:00
Gabriel Pettier e7d7c5eabf Add another RecycleView example
This one showing the usage of key_viewclass
2020-10-16 20:17:35 +02:00
matham 6aacc50403
Add class that sets RV data using kv ids. (#6897)
* Add class that sets RV data using kv ids.

* Add back root data key to example.

* Add versionadded.

* Raise an exception if key has more than one period.
2020-06-20 00:13:44 -04:00
Holger Badorreck 2a624ddec6
bugfix for 3D rendering example 2020-04-06 15:18:49 +02:00
Gabriel Pettier 0fc04ca5ec
remove gpl gif implementation (#6721)
to avoid depending on pillow just for our loading animation, created a
zip alternative, and replaced it for usage in all places.
2020-02-13 23:03:49 -03:00
Matthew Einhorn 28407b5a07 Fix PEP8 W605 (invalid escape sequence). 2020-01-03 17:41:51 -05:00
Matthew Einhorn 0b6b8930e6 Switch to flake8 and fix PEP8 issues. 2020-01-03 17:17:09 -05:00
Gabriel Pettier 7c0b8d1740
Merge pull request #6558 from blu-base/example_Twisted_Framework_fix
Fixed depreciated option for twisted, and sys.exc_call is only run in py2
2019-12-15 12:19:59 +01:00
Sebastian Engel b4d0674b9c Replaced missing image directory with latest demo dir 2019-12-05 23:35:15 +01:00
Sebastian Engel 074889db20 Remove python2's sys.exc_call 2019-10-19 17:45:41 +02:00
Sebastian Engel 517289a9c1 Changed depreciated option of twisted (--port to --listen) 2019-10-19 14:05:38 +02:00
0x005c 3d6e5f8ca4
Fix lack of white-space after colon in pong.kv 2019-08-17 12:58:28 +09:00
Matthew Einhorn 16cb83ae89 Make KIVY_EVENTLOOP optional, allow setting the async library when running the app. 2019-07-24 01:37:20 -04:00
gottadiveintopython 578f1dac93 rename the value of KIVY_EVENTLOOP from 'async' to 'asyncio' 2019-07-07 14:38:50 +09:00
Matthew Einhorn 751bd83db0 Fix PEP8 issues. 2019-06-28 01:25:52 -04:00
Matthew Einhorn b25ad1f8d5 Add more examples. 2019-06-27 01:14:23 -04:00
Christian Sirolli 76e299329b
Removed whitespace from newline
It seems the whitespace in line 58 was causing Travis CI to [fail while building](https://travis-ci.org/kivy/kivy/builds/542022321) due to a "style guide violation" during PEP8 Verification.
2019-06-06 19:38:11 -04:00
Matthew Einhorn 027b029947 Add async support to kivy App. 2019-06-05 19:47:39 -04:00
Matthew Einhorn 8de0248645 Add deprecation notices. 2019-05-17 18:09:13 -04:00
matham 88047e146c PEP8 fixes. 2019-04-27 12:11:45 +02:00
Matthew Einhorn caf6e8bd62 Clean up the dashes code and add example. 2019-04-27 12:11:45 +02:00
Akshay Arora ec2d198f52
Merge pull request #6199 from rec/apostrophe
Replace "it's" with "its" in several places
2019-03-15 13:46:37 +05:30
Tom Ritchford c49e95db0b Replace "it's" with "its" in several places 2019-03-14 12:29:27 +01:00
Tom Ritchford 3959014408 Correct a grammar mistake in two places 2019-03-14 11:01:56 +01:00
erm3nda 7b633542e7 Fixed bounce (#5943)
Disabled bounce ability once paddle hits ball untill paddle doesn't collide.
2019-03-10 11:49:30 +01:00
Mathieu Virbel fdb0c41d58 add missing end of line 2019-02-01 20:51:08 +01:00
Mathieu Virbel 9be612399e Save a core Image into BytesIO 2019-02-01 20:21:09 +01:00
Mathieu Virbel d78d435a38 remove all informations about listview, and fix the latest example to use RecycleView 2018-10-06 16:08:24 +02:00
Mathieu Virbel f13ab07f09 fix styles from latest PR 2018-10-06 16:06:24 +02:00
Mathieu Virbel 3fe4ed5801 fix pango_demo.py for python2 2018-10-05 17:51:49 +02:00
Mathieu Virbel c684d78f90 add example for pango renderer 2018-10-05 17:35:59 +02:00
Peter Badida 8e412b87a2 PEP8 fix 2018-08-20 18:19:39 +02:00
Gabriel Pettier fa045f5aee replace nbsp with space 2018-08-20 18:19:39 +02:00
Gabriel Pettier dfbb57abad add an example for using UrlRequest 2018-08-20 18:19:39 +02:00
erm3nda 7664780e6c Pong tutorial: fixed PEP8
Adding surrounding spaces to operators
2018-07-13 05:57:01 +02:00
erm3nda a456bafe21 Pong tutorial: fixed multi-line imports
Removed \ style
2018-07-13 05:52:21 +02:00
dolang 0c63c698fd Fix licensing issues (#5786)
* Fix GPL address (#5772)

* Replace showcase icons with Open Iconic

- The icon set Open Iconic is licensed under MIT unlike the previous
  ones, which are CC-BY-NC
2018-06-12 00:07:03 +02:00
DefaultUser 4de0599a89 Update joystick example 2018-05-21 19:16:29 +02:00
Kristian Sloth Lauszus e658c65cef Fix animation transition around the unit circle in Android compass example
For example if the previous angle was 269 and the new angle is -84, then the current code would rotate the needle in a clockwise direction. This fix would add 360 to -84, so the new angle would be 276, which would result in the correct behaviour of the needle rotating anti-clockwise.
2018-05-21 16:22:16 +02:00
Adachinski 87897c489d Add on_textedit event to SDL2 Window (#5597)
* Add on_textrdit event

* Add on_textedit event

* Add TextEdit Event

* Add on_textedit sample
2018-05-08 20:59:18 +02:00
Zen-CODE a4d93d65f6 examples: Make important property more obvious 2018-02-10 17:13:27 +02:00
Zen-CODE 7bf69fed42 doc: Added explanation of *important* behaviour in ActionView 2018-02-09 19:37:43 +02:00
Zen-CODE 4af812f918 Remove overlapping caption in ActionBar example 2018-02-09 19:14:36 +02:00