Commit Graph

12577 Commits

Author SHA1 Message Date
Mirko Galimberti 1029f2ad9d Removed Python3.6 from the supported ones, it reached EOL 2022-01-22 16:04:20 +01:00
Dexer 991ae22ec6
Window.softinput_mode fix for "pan" and "below_target" modes when using kivy virtual keyboard. (#7726)
* Softinput_mode fix for pan and below target modes

Fixes issues related to correct Kivy virtual keyboard display for soft_input modes: `pan` and `bellow_target`

* Refactoring

* Removal of unreachable code.

* refactoring and fixes

* pep8
2022-01-22 15:15:45 +01:00
Matt Einhorn 31308184cf
Merge pull request #7493 from pythonic64/update-add_method_clear_window_and_event_loop
GraphicUnitTest: Add clear_window_and_event_loop method
2022-01-19 19:06:46 -07:00
Sander Land e2d0b0c75a
collections fix for python 3.10 (#7749)
* collections fix for python 3.10

* do not support old versions

* do not support old versions

Co-authored-by: Sander Land <sander@chatdesk.com>
2022-01-19 21:04:30 -05:00
Matt Einhorn 29856d9fa2
Merge pull request #7752 from misl6/feat/improve-docs-before-kivy2.1.0-release
Improves docs on mobile, fixes duplicated getting started
2022-01-19 19:03:43 -07:00
baseplate-admin c6fe1111bb
Update README.md (#7757) 2022-01-19 21:03:43 +01:00
Dexer d97fe64f1b
Fixes some bugs in the TextInput if the text is right-aligned or center-aligned and not multiline. (#7631)
* "Partially" fixes the center and right horizontal alignment bug

The bug appears when using multiline equal to false.
The only thing that hasn't been fixed is the appearance of a spacing when you start deleting characters from text larger than the viewport

* Fix the horizontal alignment bug

* pep8

* Minor fix and refactoring

* minor fix
2022-01-16 19:03:25 +01:00
Mirko Galimberti b79cd3cafc Improves docs on mobile, fixes duplicated getting started 2022-01-16 10:47:53 +01:00
Gabriel Pettier fbf561f73d
Add python3.10 in the ci configuration [build wheel linux] [build wheel osx] [build wheel win] (#7663)
* Add python3.10 in the ci configuration

* Update setup.cfg and setup.py for python3.10

* also update pyproject.toml to allow using latest cython

* update kivy-deps.sdl2 required version in setup.cfg

* bump kivy-deps.sdl2 version

* use develop version of pyinstaller for python3.10 support

* osx try simplified build

* force usage of next funcparserlib release that doesnt use 2to3 in setup.py

* 3.6 reached EOL on 2021-12-23

* macOS: add cp310-macosx_universal2

* We don't install anymore the full version. So ffmpeg dependency is not needed anymore. I expect to have a universal2 whl for ffpyplayer when we will switch back to full,dev

* manylinux2010 --> manylinux2014 (via cibuildwheel)

* Remove dependencies, so we can check delocating. Installs dev version cause support for 3.10 in ffpyplayer is missing

* Update manylinux sdl2 version and max cython version.

* Bump win deps.

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
Co-authored-by: Matt Einhorn <moiein2000@gmail.com>
Co-authored-by: Matthew Einhorn <matt@einhorn.dev>
2022-01-12 18:26:20 +01:00
Alspb 4320c7271c
Textinput on double tap improvement (#7636)
* Improved on_double_tap in textinput - words are selected considering commas, brackets, etc.

* Created separate method for word selection

* Minor refactoring
2022-01-11 19:08:30 +01:00
Alspb 25c00cc7e8
CodeInput: fixed disappearing lines after inserting text (#7737) 2022-01-08 11:02:20 +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
Gabriel Pettier b692b22763
Enable pressure for touches in android (and ios?) (#7684)
* enable pressure four touches in android (and some ios devices)

* style fixes
2021-12-25 17:44:00 +01:00
Alspb 7206762b88
Textinput: Fixes issues #7165, #7236, #7235 (#7641)
* Fixed #7165

* Fixed #7236

* Fixed #7235

* Minor refactoring
2021-12-20 01:04:23 +01:00
Filip Radović 64dd093022
MotionEvent: Fix docstring in dispatch_done method to reference post_dispatch_input. (#7717) 2021-12-14 12:01:16 +01:00
水戸う納豆齋(Nattōsai Mitō) c27fb3187b
deprecate 'kivy.utils.SafeList' (#7701)
* deprecate SafeList
2021-12-11 15:10:38 +01:00
Filip Radović 66458a9656
MouseMotionEventProvider: Update simulated touch position on window reisze or rotate. (#7714) 2021-12-11 15:09:37 +01:00
Filip Radović a1c1bcbefc
MotionEvent: Fixed calculation of z values in scale_for_screen when p is None. (#7679) 2021-12-10 18:17:10 +01:00
Filip Radović 15e093a319
MotionEvent: Fix keeping of the previous normalized position (#7691)
* MotionEvent: Fix keeping of the previous normalized position.
* MotionEvent: Synchronizing normalizied opos, ppos and pos until the first dispatch.
* MotionEvent: Renamed attribute keep_first_prev_pos to sync_with_dispatch.
* MotionEvent: Fixed synchronization of normalized positions until the first dispatch.
* EventLoopBase: Moved me.dispatch_done call to post_dispatch_input method.
* MotionEvent: Moved synchronization until the first dispatch from move to depack method.
* MotionEvent: Fixed commend in depack method.
* MotionEvent: Fixed docstring of method "move".
2021-12-10 18:13:10 +01:00
Alexander Wolf 9a7f521d23
change method name to get_color_from_hex (#7706) 2021-12-09 20:58:10 +01:00
Mirko Galimberti 6475495300
Add an option to force a custom search path for SDL2 frameworks + fixes ARCHFLAGS (#7711)
* Allow to force a custom search path for SDL2 frameworks + fixes ARCHFLAGS

* Removes additional flags that were preventing to build a universal2 wheel.
2021-12-09 18:15:25 +01:00
水戸う納豆齋(Nattōsai Mitō) 6fcf41729c
[WIP] refactor kivy.lang (#7703)
* remove unnecessary list creations
* remove unnecessary 'len()' calls
* remove unused import statements
* use dict.items() instead of dict.keys()
* replace deprecated stuffs with not-deprecated ones
* remove unnecessary list creation
* explicitly specify file encoding
2021-11-23 09:52:10 -03:00
Mirko Galimberti 43dc1cee87
Moved support-request to v2. v1 has been shut down. (#7676) 2021-11-19 13:34:39 +01:00
Stanislav Syekirin 74057b9fcf
Remove wording and functions specific to Python 2 (#7693) 2021-11-16 23:06:25 +01:00
Gabriel Pettier f0db81200a
Fix dds header comparison (#7688) 2021-11-13 17:28:52 +01:00
Filip Radović e8725996ac
MotionEvent: Fix scale_for_screen method (#7659)
* Fixed scale_for_screen to compute all absolute coords from normalized coords.
* Updating dz only if argument p is passed.
* Updated doc of to_absolute_pos method.
* Renamed arguments of to_absolute_pos method.
* Removed default value for rotation in to_absolute_pos method.
* Minor updated in scale_for_scren and doc update in to_absolute_pos method.
* Minor updated in scale_for_scren and doc update in to_absolute_pos method.I
* Fixed to_absolute_pos for case when rotation is 270 degrees.
* Simplified offset calculation for "scale" keyboard mode in scale_for_screen method.
* Added test_motion_event.py module.
  * Fixed assert message in test_to_absolute_pos method.
  * Added create_dummy_motion_event method.
2021-10-31 18:54:54 +01:00
Gabriel Pettier f40dd28ed6
temporary force python3.9 use in the ci (#7674) 2021-10-31 00:30:05 +02:00
水戸う納豆齋(Nattōsai Mitō) a7a0310219
fix various docs (#7672)
* fix kivy/effects/*.py docs
* add 'kivy.clock.triggered' to the doc
2021-10-30 14:12:27 +02:00
Filip Radović 8ae4378e85
WindowBase: Add transform_motion_event_2d method (#7648)
* WindowBase: Added transform_motion_event_2d method.
2021-10-28 22:36:03 +02:00
Gabriel Pettier 6430e13562
Rebase pr 2212 (#4546)
* added new type color for a colorpicker setting.

* removed not used textinput property in SettingColor

* added text_size to the color label to allow word wrapping. Looks nicer on smaller screens e.g. 320x480

* change white background rectangle of selected color to a white border.

* Added vesionadded.

* Corrected PEP8.

* Added Type color to doc string.

* ColorSetting: Update versionadded, fix demo config key

* Update kivy/uix/settings.py

update versionadded

* don't import kivy utils from style.kv

as it prevents tests from passing

* pep8 remove duplicate import

Co-authored-by: Alexander Wolf <awolf2904@gmail.com>
2021-10-08 14:05:42 +02: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
Richard Larkin 7e2a2c7529
Merge pull request #7620 from p0lygun/patch-3
removed print and added logging to flipVert
2021-10-05 00:47:30 +02:00
Richard Larkin 3223583651
Merge pull request #7644 from pythonic64/update-doc_of_disable_hover_property
MouseMotionEventProvider: Update doc of disable_hover property
2021-10-05 00:43:59 +02:00
Filip Radović 6a20b0dd35
WindowBase: Change type of clearcolor property to ColorProperty. (#7647) 2021-10-02 15:43:17 +02:00
Dexer c11125ee4a
Added scroll from swipe feature in TextInput (#7610)
Textinput updated to allow scroll from swipe

* Improve consistency of scroll feature when text input is multiline
* Removing unnecessary calculation in minimum_width variable
  I believe it is unnecessary to perform the calculation using the
` _get_text_width` method, when `self._lines_rects[-1].texture.size[0] `
  already provides the calculated value.
* allows scrolling while text is selected and more...
* bug fixes in the middle handle (which comes out of the text input bounding
  box when scrolling from the swipe) and in the display balloon (which was
  never displayed when using double/triple tap).
* Added descriptive names and comments to explain logic

Co-authored-by: Gabriel Pettier <gabriel.pettier@gmail.com>
2021-10-02 15:40:55 +02:00
pythonic64 0e485fbeaf MouseMotionEventProvider: Updated doc of disable_hover property. 2021-09-30 17:18:09 +02:00
Vibhakar Solanki d526ade135
Added Custom titlebar support (#7637)
* added SDL_SetWindowHitTest function definitions, and data types
* Added custom_titlebar, custom_titlebar_handler_callback to handle titlebar and resize logic
* added custom_titlebar function
* removed SDL_WINDOWEVENT_HIT_TEST from WindowEventID
* made SDL_HITTEST_DRAGGABLE conditional
* added custom_titlebar in graphics section
* added custom_titlebar as WindowBase propetry
* added custom_titlebar in setup_window
* added custom_titlebar to setup_screen and post init set_border_state
* changed default_language_version to python3
* Implemented Window specific API to Support Aero Snapping
* when custom_title, set borderless state according to platform
* Added conditionl calling of in_drag_function; check for propretry draggable
* Set borderless state depending on platform
* add condition to compile windows specific code on windows only
* group windows code together
* fix resize issue after first drag of window (on windows platform)
* Made use of class _WindowsSysDPIWatch to set WM_NCCALCSIZE
* added variable WM_NCCALCSIZE
* moved the winproc hook code to window_sdl.py
* added handling when custom_titlebar is false on windows
* set_custom_titlebar returns True on 0
* added example for set_custom_titlebar
* changed checking conditions in set_custom_titlebar
* added custom_titlebar_border; bump up config version
* fixed Win32 patform test
* check for resizeable when using custom_titlebar

closes #5279
2021-09-28 22:00:36 +02:00
Dexer a555d02ddd
Fixed unexpected overscrolling bug when using mouse wheel, complement to #7612 (#7615)
* Update textinput.py

* refactoring for readability/identification

* refactoring
2021-09-21 00:14:55 +02:00
Geo Maciolek 0ca10a893f
Update line number refs (& remove one unclear one) (#7625) 2021-09-19 17:40:08 +02:00
eric15342335 d1b7f415b8
Replace modname_tkinter with 'tkinter' (#7605) 2021-09-19 17:39:58 +02:00
SubaruArai c2471d3098
bugfix: tutorials pong score countup on right side (#7603)
The ball wasn't acting correctly when touching the right side:
The score countup occured when the ball's left side touched the right
wall.
2021-09-19 17:39:41 +02:00
Dexer 390cffa3fc
Fixed inconsistent behavior of TextInput bubble and handles (#7621)
* Fixed inconsistent behavior of TextInput bubble and handles

The entirety of the bugs resolution is conditioned to the approval of #7618

* Fix the bug that do not limit selection to the current line using handles

Fix the bug that do not limit selection to the current line, while using handles and in multiline mode

* Refactoring
2021-09-19 11:53:28 +02:00
Dexer 1e518357cb
Fixes TextInput cursor issues when resizing/scrolling (#7622)
* Fixes text input cursor issues when resizing/scrolling

* refactoring
2021-09-19 11:21:25 +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
Dexer 9152bc8590
Fixed TextInput visual selection bugs while scrolling (#7618)
Fixed TextInput visual selection bugs in multiline mode while scrolling vertically.
Removed unecessary operation.
2021-09-13 21:01:45 +02:00
Vibhakar Solanki a2a5078249
removed print and added logging to flipVert
Removed unnecessary print statement and made use of Logger
2021-09-12 22:56:54 +05:30
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
Dexer 92ff508dc1
Fixed unexpected overscrolling when using mouse wheel (#7612) 2021-09-05 15:47:16 +02:00
Akshay Arora 49ef9ff24b
Merge pull request #7592 from outdooracorn/fix/docs
Fix missing word in doc/guide/events.rst
2021-08-14 17:45:19 +05:30