A library for manipulating Windows cursors, supporting CUR file reading and system cursor settings.
Project description
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
win_cur-1.0.tar.gz
(10.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
win_cur-1.0-py3-none-any.whl
(10.7 kB
view details)
File details
Details for the file win_cur-1.0.tar.gz.
File metadata
- Download URL: win_cur-1.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
708baa8043de4c85046e3c7415b771beec217ea8b82807fdd6f5d409c502cbbb
|
|
| MD5 |
ef03f471f7bceddf681fa0e1f981b0ef
|
|
| BLAKE2b-256 |
f3deecd24a4b5574836c0d0869da25de6ef51ed1ec7e3c06a2834056b4a18fbc
|
File details
Details for the file win_cur-1.0-py3-none-any.whl.
File metadata
- Download URL: win_cur-1.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e4b2aa7fb726eb6626b509ee4b14999cebdcf3287a29ab306e79d4336b1a0c2
|
|
| MD5 |
f588c9fff3e9359cf213c3ce36e1ecf2
|
|
| BLAKE2b-256 |
cf0ad0079ccfc59b727287a3754e57fb4ea48e9471e1c934f24b204f41138312
|