azinneck0485
1e3e520f64
Fixes markup `[sup]` followed by `[sub]` doesn't work (issue #8077 ) ( #8435 )
...
* change conditions in render_lines method of markup.py to handle sequential sub-/superscript tags without a space between the close-] and open-[
* made corrections in markup.py relative to PEP8 checker
2023-11-18 14:30:06 +01:00
Julian
937e965d1e
Update support-requests action ( #8453 )
...
New features include: Close as Unplanned and fewer warnings.
Trying on kivy/kivy before pushing out to others projects.
2023-11-16 18:45:45 +01:00
Julian
1ec93cdab8
Correct documentation of schedule_interval ( #8464 )
...
Fixes #6739
Also, removed decimal point after 30 - not required in Python 3.
2023-11-16 18:19:12 +01:00
Julian
6ae4fc2923
Edit Contact Us page in docs ( #8442 )
...
In accordance with discussion #8424 .
2023-11-12 16:16:51 +01:00
Mirko Galimberti
b581085437
Remove bountysource link, as bountysource looks died. ( #8447 )
2023-11-10 15:06:41 +01:00
Elliot Garbus
4caee3ccf8
`Window.mouse_pos` is incorrect if the scale factor in Windows is not 100%. ( #8446 )
...
* Update self._density for Windows, based on the dpi
---------
Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-11-10 15:01:00 +01:00
Julian
922cda230f
Fix `SyntaxWarnings` during doc generation ( #8440 )
...
* Copy edit comment
* Factor out common regular expression patterns to make intent clearer.
* Quote patterns with r"" to fix SyntaxWarning.
* Simplify "if not X return False else return True" to "return X"
* Lose unneeded parentheses giving IDE style warning.
2023-11-09 15:55:06 +01:00
Julian
56fefd0c4b
Slow down no-response bot ( #8443 )
...
Fourteen days isn't very long to respond to a request for more information, especially given it may come in weeks, months or years after the original request.
Vacations last longer than time. Development crunches last longer than that.
Let's give them 6 weeks before the bot gets upset.
[I am preparing to share this script across Kivy projects.]
2023-11-09 15:50:39 +01:00
Mirko Galimberti
533a95fafa
Add `balenalib/raspberrypi3-debian-python:3.11-bookworm` to rpi builds for newer RPi OS ( #8428 )
...
* Add python:3.11-bookworm to rpi builds
* Update patchelf to 0.18.0
* Do not unpack directly to /
* Use the proper manylinux target platform for bookworm
* Test back 0.17.2
* Updated docs to reflect bookworm support addition
2023-11-05 09:30:48 +01:00
Xnot
81a3e18a5d
Remove redundant `from kivy.base import EventLoop` import causing crashes in `window_sdl2` ( #8218 )
2023-11-04 11:50:10 +01:00
Dexer
1598e4e0a0
Fix use of `BoxShadow` with `canvas.add`, `canvas.insert` and `canvas.remove` ( #8375 )
...
* fix canvas.add, canvas.remove and canvas.insert
* add tests
* Update setup.py
2023-11-01 21:23:55 +01:00
Dexer
276ff18fc8
Avoid multiple values for `noadd` in `VertexInstruction` ( #8374 )
...
* avoid multiple values for 'noadd'
* Update kivy/graphics/instructions.pyx
Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
---------
Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-11-01 18:29:12 +01:00
Font
64d295c1a5
Rework custom `garden` importer to avoid usage of `imp` module (removed in Python `3.12`) ( #8301 )
...
* UPDATE
* Rework custom garden importer to avoid usage of imp module (removed in 3.12)
* Apply black formatting
* Fix flake8 error
---------
Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-10-29 15:27:07 +01:00
Mirko Galimberti
effc7709b9
Install `setuptools` before `sdist` generation, as `setuptools` is not anymore available by default on `3.12` ( #8426 )
2023-10-29 11:45:44 +01:00
Mirko Galimberti
051c4e93da
Add tests for `create_json_panel` method of `Settings` ( #8404 )
2023-10-29 11:45:07 +01:00
Dexer
bc5904f4eb
Add graphics with antialiasing: `SmoothRectangle`, `SmoothEllipse`, `SmoothRoundedRectangle`, `SmoothQuad` and `SmoothTriangle` ( #8309 )
...
* add smooth graphics
* add unittests
* add versionadded
* add versionadded
* fix flake8
* fix canvas.add, canvas.insert and canvas.remove
* disable antialiasing_line before build
* test using texture instead of source
* remove custom stencil instructions
* update arg name
* fix typo
* fix error type
* refactoring
* fix/ensure the order of instructions
2023-10-28 19:07:11 +02:00
Dexer
7fd2f37c1a
Expose new `clear_stencil` property in `StencilPush` ( #8413 )
...
* expose `clear stencil` property
* convert to int
* throw an error if an incorrect type is passed to clear_stencil
2023-10-27 19:06:36 +02:00
Randy Eckenrode
07279f5e3a
Fix cgl_backend build with clang 16 ( #8415 )
...
Per https://registry.khronos.org/OpenGL-Refpages/gl4/html/glShaderSource.xhtml ,
`glShaderSource` should take a `const GLchar**` not a `const GLchar* const*`.
This difference causes building Kivy with clang 16 to fail due to
incompatible function pointer conversion errors.
2023-10-25 18:33:49 +02:00
Vibhakar Solanki
adb8344227
Clipboard: fixes blank string being pasted into clipboard when using the default `win32` backend ( #8342 )
...
* fix(core): clipboard now properly pastes strings with emoji; fixes #8314
* tests(clipboard): test for emoji support in win32 clipboard
* feat(Clipboard): make test with emoji deterministic
* chore: Update todo, add comment explaining SetClipboardData
* chore: fix linting errors
2023-10-24 19:30:53 +02:00
Sehar Batool
d029d15f9c
Removes broken support e-mail address in the README.md, and improve the support section ( #8411 )
...
* Support Section Updated issue #8409 fixed
* Suppor Section Updated
* Update README.md
Co-authored-by: Vibhakar Solanki <solankivibhakar82@gmail.com>
---------
Co-authored-by: Vibhakar Solanki <solankivibhakar82@gmail.com>
2023-10-24 19:11:53 +02:00
Mak Sim
f12d8e60bc
WindowSDL: Add opacity feature ( #8296 )
...
* Update sdl2.pxi
Window.opacity feature
* Added opacity property to kivy.core.window.Window
Window.opacity feature
* Update window_sdl2.py
Window.opacity feature
* New feature: Window.opacity
Window.opacity feature
* Added Window.opacity example to kivy-examples
Window.opacity feature
* Create test for Window.opacity
* Fix opacity check
Replace 'or' with 'and'
* Move tests to test_window_base.py
* Move tests to test_window_base.py
* Fix PEP8
* Fix PEP8 (first file)
* Fix PEP8 (second file)
* Move tests to WindowBaseTest class (#8296 )
* Added error checking (#8296 )
* Remove opacity range test (#8296 )
* New Window.opacity test (#8296 )
With @pythonic64 recommendations
* New error checking (kivy#8296)
* fix syntax (kivy#8296)
* Update __init__.py
* New Window.opacity test (kivy#8296)
* Add opacity value to log message (kivy#8296)
* Update __init__.py (#8296 )
Add dispatching of opacity on the value change
* New example (#8296 )
* Update __init__.py (kivy#8296)
* Update window_sdl2.py (kivy#8296)
* Update __init__.py (kivy#8296)
I made a mistake, and now I've fixed it :)
* Update _window_sdl2.pyx (kivy#8296)
* Update window opacity tests (kivy#8296)
* Add more docs (kivy#8296)
* Fix docs 🫣 (kivy#8296)
* Update example (kivy#8296)
* Update example (kivy#8296)
* Fix typo (kivy#8296)
* Fix yet another typo (kivy#8296)
2023-10-16 21:03:31 +02:00
Dexer
23a844024c
Introduce `clear_stencil` option in `StencilPush`, to allow disabling stencil clearing and improve GPU performance when using Stencil Instructions ( #8405 )
...
* add clear_stencil option to StencilPush
* add docs
2023-10-14 18:51:19 +02:00
Guy Sheffer
c059631c49
Fixes a regression that prevents the setting panel to load
2023-10-14 10:45:20 +02:00
Dexer
35e9244773
Fix `SmoothLine` rendering issues ( #8271 )
...
* improve Smoothline drawing
* minor refactoring
* minor refactoring
2023-10-14 10:05:36 +02:00
Uchenna Wealth
1d324beb0a
Docs: Fixes spelling errors and typos ( #8402 )
...
* fixed grammar
* Corrected spelling of showcasing
2023-10-13 18:31:57 +02:00
André Oliveira
23376f36e0
Fix stencil operations when `KIVY_WINDOW=x11` ( #8383 )
2023-10-10 20:16:25 +02:00
Elliot Garbus
96bbd966f5
Prevent apps from crashing when `sys.stderr` is `None` (pythonw and pyinstaller 5.7) ( #8345 )
...
* fix pythonw and pyinstaller issue
Kivy apps will crash if run from pythonw or if they are built with pyinstaller 5.7 In both cases sys.stderr is set to None, causing a recursion error in the python logger. This fix sets the KIVY_NO_CONSOLELOG environment if sys.stderr is None. This preserves the behavior prior to pyinstaller 5.7, and allows correct operation under pythonw.exe
* Update logger.py
Moved changed to the add_kivy_handlers() function
* modified per @pythonic64
* Added test for fix of issue 8345
* Lines shortened for pep8 compliance
* Removed "\" for pep8 compliance
* Used parens to shorten lines to be consistent with the rest of the file, for pep8 compliance
* Used "\" for line continuation, for pep8 compliance
* Update kivy/tests/test_logger.py
Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
---------
Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-10-08 15:10:08 +02:00
Mirko Galimberti
9e8450cc79
Now Github Actions provides python3 via setup-python also for Apple Silicon macs ( #8392 )
2023-10-08 11:15:08 +02:00
Akshay Arora
bbc7af6461
dd Doc for Selector/Selection Handles ( #8377 )
2023-10-05 18:57:32 +02:00
Uchenna Wealth
c777670a05
Docs: Fix grammar ( #8387 )
2023-10-04 18:38:14 +02:00
Mirko Galimberti
ca1b918c65
Add support for `Cython==3.x.x` and increase `cython_min` version ( #8326 )
...
* Add support Cython==3.x.x and increase cython_min_version
* Migrate gstplayer
2023-08-26 10:00:20 +02:00
Julian
8ef7576f5f
Correct CI comment regarding logging tests ( #8359 )
...
No functionality changes.
Just correcting a comment that was out of date.
2023-08-24 15:41:43 +02:00
Mirko Galimberti
c7f42752c3
Apply style fixes as suggested by new flake8 version ( #8357 )
2023-08-24 15:40:07 +02:00
Pamir Roy
2bbb09aa36
RecycleDataAdapter: Fixed typo in class docstring ( #8347 )
...
The comma should be outside the method declaration in line 169.
2023-08-22 17:01:05 +02:00
David Pesticcio
48f42d9b41
ObjectProperty: Fixed ValueError message in "convert" method ( #8349 )
2023-08-22 16:58:18 +02:00
jfishzon
d69693256d
Fix linux dependencies build instructions ( #8324 )
...
* fix linux venv & build_kivy_deps.sh creation in docs as per issue 8305
change from:
python -m virtualenv kivy_venv
to:
python -m venv kivy_venv
change from:
curl -O https://raw.githubusercontent.com/kivy/kivy/master/tools/build_linux_dependencies.sh -o build_kivy_deps.sh
to:
curl https://raw.githubusercontent.com/kivy/kivy/master/tools/build_linux_dependencies.sh -o build_kivy_deps.sh
* Update installation.rst
change from:
https://virtualenv.pypa.io/en/latest/
to:
https://docs.python.org/3/library/venv.html
2023-07-23 18:23:02 +02:00
Sumit Gupta
bce7f5b762
Docs: Fix double word typos ( #8323 )
...
* fixed grammar typo
* Fix Double Word Typos
* Added Fullstop
* a small typo
2023-07-22 09:43:33 +02:00
Lucas Couto
7e9affd6f2
Core-window: Removes deprecated toggle_fullscreen method ( #8300 )
2023-07-16 16:43:01 +02:00
Mirko Galimberti
dc5c949506
Linux dependencies: Build libpng16 for freetype, so can render colored emoji ( #8313 )
2023-07-16 15:53:30 +02:00
Mirko Galimberti
84f9d77665
macOS dependencies: Build libpng16 for freetype, so can render colored emoji
2023-07-15 16:23:53 +05:30
atharva-satpute
b68c5c602f
Remove the extra position added to undo list when
...
text is entered using the Shift key.
2023-07-13 16:03:21 +05:30
Lucas Couto
8e160fb084
core-providers (audio): removes deprecated `status` property ( #8298 )
...
* Core-audio: removes deprecated status property
* core-providers (audio): update audio example
* Fixing conflicts
2023-07-03 19:15:22 +02:00
Mirko Galimberti
5585b2410b
Pin `Pillow` version to `9.5.0` ( #8310 )
2023-07-02 19:02:52 +02:00
Julian
c1d97f1a71
Copy edits: Standardize on spelling ( #8308 )
...
Changed comments (only) to use American spellings of common words.
(As an Australian, it hurts me to use the American spelling, but it looks more professional to have one standard throughout, and the code itself uses American spellings, so I kept it consistent.)
Also trivial copy-edits to comments in RecycleView.
2023-07-02 11:27:32 +02:00
Julian
22c9604a67
Copy-edit to layouts.rst ( #8303 )
...
Trivial copy-edits to text,
2023-07-02 09:55:34 +02:00
Lucas Couto
5ea06fd0ed
core-providers (audio): removes deprecated `filename` property ( #8299 )
2023-07-02 09:33:02 +02:00
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