Andrew Murray
9867b51d89
Catch subprocess.CalledProcessError in test_grab_x11
2026-04-21 07:51:50 +10:00
Andrew Murray
b428f7209f
Open a macOS window on CI
2025-12-02 23:53:45 +11:00
Andrew Murray
04ee0cc3b1
Raise error if subprocess gives non-zero returncode
2025-12-02 23:06:18 +11:00
Adian Kozlica
4402797b35
Add support for Grim in Wayland sessions ImageGrab ( #8912 )
...
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-04-21 12:36:40 +10:00
mergify[bot]
7c56b383ff
Merge pull request #8842 from AdianKozlica/image_grab_wayland_kde
...
Add KDE Wayland support for ImageGrab
2025-04-01 09:38:56 +00:00
Adian Kozlica
eeb494abf7
Fix formatting
2025-03-28 17:18:09 +01:00
Adian Kozlica
722283e819
Add KDE Wayland support for ImageGrab
2025-03-28 16:43:10 +01:00
Andrew Murray
28e5b929f8
Test 0
2024-11-05 08:40:09 +11:00
Andrew Murray
607acbf95e
Allow window to be supplied for ImageGrab.grab() on Windows
2024-11-05 07:05:39 +11:00
Andrew Murray
486dac7efc
Added type hints
2024-07-06 19:17:23 +10:00
Andrew Murray
d0d53d4bac
Added type hints to tests
2024-06-25 10:50:40 +02:00
Andrew Murray
e39765d755
Added type hints
2024-02-20 15:41:20 +11:00
Andrew Murray
d8f52f58be
Merge branch 'main' into main
2024-02-05 08:56:25 +11:00
Hugo van Kemenade
4a4b90c365
Autotype tests ( #7756 )
...
* autotyping: --none-return
* autotyping: --scalar-return
* autotyping: --int-param
* autotyping: --float-param
* autotyping: --str-param
* autotyping: --annotate-named-param tmp_path:pathlib.Path
2024-01-31 20:12:58 +11:00
Andrew Murray
5efa2ade22
Added test
2024-01-31 19:10:33 +11:00
Hugo van Kemenade
53c3cd9f8e
isort Tests
2024-01-20 13:23:03 +02:00
Hugo van Kemenade
43b2f61e79
Add 'from __future__ import annotations' using Ruff/isort
2023-12-21 13:13:31 +02:00
Ondrej Baranovič
6fe42bddd9
Apply suggestions from code review
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-28 14:20:57 +01:00
nulano
1fdb0668d8
test cibuildwheel wheels in Docker on Windows
2023-11-28 14:20:57 +01:00
Andrew Murray
26d5f4fcb1
Use tuple instead of list
2023-05-23 21:27:55 +10:00
Andrew Murray
f15d7265f7
Call init() if mimetype is not found with preinit()
2023-04-18 10:33:31 +10:00
rrcgat
3d54b8e2b2
Remove useless try catch block
2023-04-16 15:41:14 +08:00
rrcgat
099d696dc7
Fix ImageGrab with wl-paste
2023-04-15 19:28:54 +08:00
Andrew Murray
e653aaee89
NotImplementedError will not be raised if xclip is available
2023-01-04 00:43:48 +11:00
Andrew Murray
73a2c3049f
Use pytest.raises match argument
2022-12-29 10:27:03 +11:00
Andrew Murray
2ecf88eaa6
If available, use xclip for grabclipboard() on Linux
2022-12-07 22:01:37 +11:00
Andrew Murray
ccac854077
If available, use wl-paste for grabclipboard() on Linux
2022-12-07 21:33:09 +11:00
Andrew Murray
6b286ed62f
XCB will not be used on Linux if gnome-screenshot is present
2022-11-02 07:47:05 +11:00
Andrew Murray
73ccda9cd1
Do not compare properties to themselves
2021-12-26 13:27:41 +11:00
Hugo van Kemenade
dd87dd50c0
Update to isort 5 with Black profile support
2020-08-08 22:39:29 +03:00
Hugo van Kemenade
d641bdc504
Fix isort
2020-06-27 14:05:34 +03:00
nulano
12ddff729b
Merge branch 'master' into skips
2020-06-21 18:05:27 +01:00
nulano
dc41a4ec21
use skip_unless_feature in more tests
2020-06-14 20:21:30 +02:00
nulano
1656edaf41
fix docs compliance for CF_HDROP
2020-05-09 10:44:19 +02:00
nulano
5728662c7f
add support for CF_DIBV5, CF_HDROP, and 'PNG' in ImageGrab.grabclipboard() on win32
2020-05-09 09:40:58 +02:00
Hugo
dda6145fce
Since Python 3.3 IOError and WindowsError have been merged into OSError
2020-04-10 12:57:29 +03:00
Andrew Murray
d7c34511ba
Updated tests
2020-03-24 19:53:03 +11:00
Andrew Murray
228613017b
Added test if XCB is not present
2020-03-24 19:51:13 +11:00
Andrew Murray
2543719e12
Updated error catching
2020-03-24 19:49:05 +11:00
nulano
0bcc7be89b
xcb screengrab docs and fixes
2020-03-24 19:46:40 +11:00
nulano
f9c74825a6
xcb screengrab fixes
2020-03-24 19:40:54 +11:00
Andrew Murray
7ff2db143d
Removed use of PillowTestCase
2020-03-23 07:05:51 +11:00
Andrew Murray
8482919a37
Converted most assert statements to pytest
2020-02-23 00:06:21 +11:00
Hugo
a4bf9fa036
Convert most PillowTestCase methods to pytest
2020-02-02 12:26:01 +02:00
Andrew Murray
9bed79e426
Test grab bbox
2020-01-14 21:38:17 +11:00
nulano
6a2d8f8da0
rename parameter, add note to docs
2019-09-20 17:35:08 +02:00
nulano
fa6b80fddf
add option to capture all monitors on Windows
2019-08-15 20:03:33 +10:00
Jon Dufresne
d50445ff30
Introduce isort to automate import ordering and formatting
...
Similar to the recent adoption of Black. isort is a Python utility to
sort imports alphabetically and automatically separate into sections. By
using isort, contributors can quickly and automatically conform to the
projects style without thinking. Just let the tool do it.
Uses the configuration recommended by the Black to avoid conflicts of
style.
Rewrite TestImageQt.test_deprecated to no rely on import order.
2019-07-06 16:11:35 -07:00
Hugo
5631718a8d
Format with Black
2019-06-13 18:54:46 +03:00
Andrew Murray
70038bd71e
Added option to include layered windows in ImageGrab.grab on Windows
2019-04-26 20:09:46 +10:00