Commit Graph

12796 Commits

Author SHA1 Message Date
GreenJon902 ee040926ed
Allow `Scale` and `Translate` to take `x`, `y` and `z` as `kwargs`. Removes deprecated `Scale().scale` property. (#8270)
* added tests for checking translate and scale instruction creation

* added kwarg support for x, y and z in Translate

* fixed wrong value in test_graphics

* added kwarg support for x, y and z in Scale

* added version changed to doc

* removed deprecated Scale(s) in favour of Scale(x, y, z)

* Fixed wrong test names for transform creations

* Changed deprecated assertEquals to assertEqual in transform tests
2023-06-24 10:30:11 +02:00
GreenJon902 576ba4c24e
Added a flag to force the use of custom drawing line function. (#8228)
* Added force_custom_drawing_method property to line.

* Added test for forcing custom drawing method on a line.

* Fixed pep8 style issues

* fixed version changed to be correct
2023-06-19 18:36:47 +02:00
Mirko Galimberti 668b0e76e6
Add CHANGELOG for 2.2.1 (#8287) (#8289) 2023-06-18 09:43:44 +02:00
Dexer d74887c7f9
limit stencil to inner instructions (#8276) 2023-06-10 11:34:23 +02:00
Mirko Galimberti 0aa4c71b4a
Increase timeout of httpbin tests to reduce risk of failures on CI runs (#8263) 2023-05-31 20:49:39 +02:00
Mirko Galimberti 9d7df3f105
Ensures that jQuery is always installed (on newer sphinx versions is not the default) (#8251) 2023-05-20 16:22:47 +02:00
Mirko Galimberti c13f426bdd
Update version for development (#8253) 2023-05-20 16:22:18 +02:00
Mirko Galimberti bd041aea52
Release 2.2.0 (#8249) 2023-05-20 09:46:34 +02:00
Mirko Galimberti fe5e16cf1a
Update changelog for 2.2.0 (#8245) 2023-05-20 08:59:15 +02:00
Mirko Galimberti 879b0c640b
Docs review for RPi installation and build instructions (#8234) 2023-05-10 20:39:10 +02:00
Mirko Galimberti 22fd80d79f
Bump version to 2.2.0rc1 (#8231) 2023-05-04 07:13:57 +02:00
Mirko Galimberti 95cfefb260 Sphinx 7.0.0 is incompatible, use <=6.2.1 for now 2023-05-03 23:01:35 +05:30
Mirko Galimberti 01049a8f45
Perform RPi builds on `balenalib/raspberrypi3-*` images and skip `DISPMANX` API usage if can't be used (#8223) 2023-05-01 15:40:02 +02:00
Gabriel Vogel 48e6d12b73
Fix VKeyboard missing with custom keyboard class (#7846) 2023-04-29 22:14:46 +02:00
Matt Einhorn b69ca46a09
Build python 3.9 wheels for RPi + fixes the build for RPi wheels (#7852)
* Build python 3.9 for rpi as well [build wheel armv7l].

* Add missing autoreconf for debian build. [build wheel armv7l]

* Add missing libtool for debian build. [build wheel armv7l]

* Use the newer cmake based script to build dependencies [build wheel armv7l]

---------

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-04-23 15:53:04 +02:00
Mirko Galimberti 05db751198
XCode `14.3` fails to build SDL if `MACOSX_DEPLOYMENT_TARGET < 10.13` (#8191) 2023-04-23 10:48:38 +02:00
Mirko Galimberti e24c1962ea
`Generate-sdist` needs `packaging` as a dependency (#8217) 2023-04-23 10:02:55 +02:00
Mirko Galimberti 0fc8c678eb
Migrate from `autotools` to `cmake` for SDL2 linux dependencies (#8203)
* Migrate from autotools to cmake for SDL2 linux dependencies

* Update Linux install docs
2023-04-15 14:59:50 +02:00
Dexer cd4cb0f649
`Label`: allow different values of left, top, right and bottom for `padding`. (#8162)
* Allow left, top, right, and bottom padding values

* Keep support for deprecated properties

* handle deprecated properties

* remove duplicate import

* update doc and method name

* add class name to logger message

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>

* fixes and minor refactoring

* fix padding

* fix valign center

* fix halign center

* fix valign

* fix halign center with markup=True

---------

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-04-12 18:40:54 +02:00
Dexer 39c1f74a68
Migrate `allow_stretch` and `keep_ratio` in widgets/examples by corresponding `fit_mode` (#8202)
* remove deprecated properties

* add comma
2023-04-08 10:57:01 +02:00
SanAndreyas f446002f5e
Config unicode support on Windows (#7942)
* Update config.py

On Windows platform without this it cannot write correctly unicode characters

* Update config.py

fix unicode read for Windows platform

* Update config.py
2023-04-02 12:11:08 -04:00
Vinayak Sachan a89fdce72c
Qwerty VKeyboard button fix( z, Q and W and ] ) (#7925)
* Qwerty VKeyboard button fix(z,Q and W and ]) on Linux

* Update kivy/data/keyboards/qwerty.json

---------

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-04-02 12:03:28 +02:00
Dexer cf4f5b8cc1
New Feature: Allows to hide the taskbar icon (SDL2 window provider) (#8142)
* allow hide taskbar icon

* flake8

* require config migration

* move logic into setup_window

* fix typo
2023-04-01 10:15:55 +02:00
Dexer 34f2edb8fe
`Line`/`SmoothLine` - `ellipse`: Handle the number of segments to match `Ellipse` (#8187) 2023-03-28 19:34:41 +02:00
Dexer f0786c4e42
Makes Windows DPI aware of scale changes (#8058)
* make dpi aware of scale changes

* Resize on startup if there is any dpi change

* remove workarounds and use SDL_HINT_WINDOWS_DPI_SCALING
2023-03-26 11:28:43 +02:00
Dexer 84a40e88cb
`Line`/`SmoothLine`: `ellipse` - Add `close_mode` feature to allow closing line through center of ellipse (#8163)
* fix ellipse

* add warning

* remove management os minimum segments

* refactoring to change from close_from_center to close_mode

* update close_mode value
2023-03-26 10:06:06 +02:00
Dexer cd93087a7d
`Image`: add `fit_mode` feature (#8169)
* add fill_mode

* remove redundant code

* update docs

* fix flake8 error and doc

* update options name and docs

* use stencil instructions instead of getting texture region

* update docs and refactoring
2023-03-25 18:01:12 +01:00
Akshay Arora e2c8f07533
Revert "Detect High DPI on Linux Desktop" (#8184) 2023-03-24 17:49:16 +01:00
Richard Larkin bb0578f28f
Merge pull request #8181 from kivy/doc/grammar_tweaks
📖 Grammar tweaks to focus docstrings
2023-03-24 16:44:39 +02:00
anand vibhuti 9704def8e1
Docs: Fixes a typo (issue #7838) (#8183) 2023-03-23 21:14:14 +01:00
Mirko Galimberti a0df4298c6
distutils module is deprecated and slated for removal in 3.12 (#8070) 2023-03-23 20:35:33 +01:00
Richard Larkin 18e3000a82 📚 Fix typo 2023-03-23 12:07:46 +02:00
Robert Niederreiter c4a52ed078
Make VideoFFPy work with RTSP streams. (#8171)
* Make VideoFFPy work with RTSP streams.

* Remove superfluous loop waiting for metadata from ffpyplayer. This already happens above when checking src_pix_fmt.

* src_pix_fmt is reported as bytes from ffpyplayer

* Remove preventing seek on streams, stream may or may not provide seeking.

* Check src_pix_fmt for both bytes and str in VideoFFPy._next_frame_run.

* Comment the purpose of VideoFFPy._is_stream
2023-03-22 11:53:51 -04:00
Richard Larkin 4f1ac3ac84 📖 Grammar tweaks to focus 2023-03-21 14:53:45 +02:00
Danny Dawson 7f23e32441
Add svg rotation transform support (#8170)
* Add svg rotation transform support

Fixes #8166 - ChatGPT wrote the matrix transformations. I merely fixed type and import errors and verified the code works.

* Adding some simple screenshot-based Svg tests

* Simplify rotated example svg

* Clean up unnecessary lines
2023-03-20 20:49:25 +01:00
Dexer e37e3b4dc0
Allow control how many lines to scroll at once using the mouse wheel on TextInput (#7626)
* [WIP] Allows scrolling more than one line using the mouse scroll wheel

* code to scroll lines based on lines_to_scroll property

* fix pep

* typo

* fix tests and update doc

* Update test_uix_textinput.py
2023-03-19 14:55:47 +01:00
Mirko Galimberti 75dbb247be
Bump cython_max version to 0.29.33 (#8178) 2023-03-19 11:48:38 +01:00
Mirko Galimberti 619c7f3216
Update Python supported versions (#8179) 2023-03-19 11:47:34 +01:00
Mirko Galimberti a8a036ba33
Bump Windows dependencies via kivy_deps packages (#8176) 2023-03-19 10:38:28 +01:00
Mirko Galimberti ea660187b3 Bump versions on tools/build_macos_dependencies.sh 2023-03-18 23:56:07 +05:30
Mirko Galimberti fc0e4b72c9 Bump versions on tools/build_linux_dependencies.sh 2023-03-18 23:54:49 +05:30
Mirko Galimberti 6161417835
Update Copyright and LICENSE dates (#8175) 2023-03-18 11:51:47 +01:00
Dexer 58c1328c85
`Ellipse`: Handle the number of segments and avoid division by zero (#8164)
* handle the number of segments, avoid division by zero

* add warning, update segment calculation

* Update kivy/graphics/vertex_instructions.pyx

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>

* update docs

---------

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-03-18 08:43:11 +01:00
Dexer 008c6aed49
`Line`/`SmoothLine`: Fixes rendering issues related to corner radius and updates its order (`rounded_rectangle`) + add getter methods for `rounded_rectangle`, `rectangle`, `ellipse`, `circle`. (#7876)
* Fix for radius values large or equal to 0 in the rounded_rectangle

- Internal segment control to avoid unwanted shapes.
- Update resolution default value to 90.
- Corner_radius order changed to match RoundedRectangle radius property (clock-wise).
- Avoid issues with smoothline if width or height < 2.0

* Update doc, add unittests and minor tweaks

* decrease the number of segments

* Update doc, refactoring, allow larger radius value

* Allows to get the generated shape

- rounded_rectangle
- rectangle
- ellipse
- circle

* update unittests

* fixes issue related to number of segments

* removing code no longer needed since my last commit

* limit minimum resolution, refactoring

Minimum resolution keeps the figure renderable and avoids division by zero

* removing unnecessary note, typo

* Apply suggestions from code review

Co-authored-by: Gabriel Pettier <gabriel.pettier@gmail.com>

* Update vertex_instructions_line.pxi

* update docs

---------

Co-authored-by: Gabriel Pettier <gabriel.pettier@gmail.com>
2023-03-12 16:40:10 +01:00
djogy 4388451af5
Added property for mouse draggable tab scrollbar to TabbedPanel (#8144)
* Added property for mouse draggable tab scrollbar

* Fix: W291 trailing whitespace

* add versionadded 2.2.0 tag
2023-03-11 10:02:54 +01:00
Mirko Galimberti 31b6c81c5c
Fix memory access issue on iOS 16.2 for AVMetadata objects (#8146) 2023-03-11 09:20:26 +01:00
quanon 82b30f2664 Use font_direction and font_script_name from sdl2_ttfi. 2023-03-10 21:11:24 +05:30
Akshay Arora 4f5db71049
Merge pull request #8156 from misl6/fix/update-required-tools 2023-03-10 17:20:25 +05:30
Akshay Arora f0921c2b88
Merge pull request #8147 from jotoft/linux_highdpi_sdl2 2023-03-10 17:18:21 +05:30
Akshay Arora 6a29251604
Add libxext-dev as a requirement for ubuntu build. 2023-03-09 14:38:06 +05:30