win-cur
支持.cur文件读写, 系统光标设置 (.cur 或 .ani)
Support .cur file read/write, system cursor settings(.cur or .ani).
不支持压缩模式图标
Not support compressed icon.
例子:
Samples:
from PIL import Image # 不是依赖库 Not a dependent library
from win_cur.cursor import Cursor
cur = Cursor()
# 必须为RGBA模式 Must be RGBA mode
image = Image.open("sample.png").convert("RGBA")
# 添加热点(鼠标指针中心)为2, 2的光标进入文件
# Add a cursor enter the file, hotspot=(2, 2)
cur.add_cursor(image.width, image.height, 2, 2, image.tobytes())
cur.save_file("sample.cur")
Metadata
Release files for win-cur 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| win_cur-1.0.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| win_cur-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.7 kB
Release files / win_cur-1.0.tar.gz
| Download URL | win_cur-1.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
708baa8043de4c85046e3c7415b771beec217ea8b82807fdd6f5d409c502cbbb
|
|
BLAKE2b-256 checksum How to use checksums |
f3deecd24a4b5574836c0d0869da25de6ef51ed1ec7e3c06a2834056b4a18fbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.9
|
Release files / win_cur-1.0-py3-none-any.whl
| Download URL | win_cur-1.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e4b2aa7fb726eb6626b509ee4b14999cebdcf3287a29ab306e79d4336b1a0c2
|
|
BLAKE2b-256 checksum How to use checksums |
cf0ad0079ccfc59b727287a3754e57fb4ea48e9471e1c934f24b204f41138312
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.9
|