基于 PySide6 的自定义弹窗组件库,提供日期选择器、时间选择器、数字键盘、按钮选择器等UI组件
Project description
popup_kit
基于 PySide6 的自定义弹窗组件库,提供日期选择器、时间选择器、数字键盘、按钮选择器等UI组件,所有弹窗均支持屏幕边界检测。
功能特性
- 日期选择器:可视化日历弹窗,支持日期范围限制和今天快捷选择
- 时间选择器:小时/分钟调节,支持上下限时间限制
- 数字键盘:自定义数字输入弹窗,支持整数/小数/负数模式
- 按钮选择器:选项按钮弹窗,支持自定义选项和密码认证
- 屏幕边界检测:所有弹窗自动检测屏幕边界,防止溢出
安装
pip install popup_kit
快速开始
from popup_kit import DateLineEdit, NumberPadDelegate, TimePickerPopup
# 日期选择器
date_edit = DateLineEdit()
# 数字键盘委托
delegate = NumberPadDelegate(allow_float=True)
# 时间选择弹窗
time_popup = TimePickerPopup(initial_time="14:30")
time_popup.time_selected.connect(lambda t: print(f"选择了: {t}"))
许可证
MIT License
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
popup_kit-26.6.24.850.tar.gz
(26.1 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
File details
Details for the file popup_kit-26.6.24.850.tar.gz.
File metadata
- Download URL: popup_kit-26.6.24.850.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f00ea08f2eafecdfa191ac99cf4d7ff1003b1f180faee35202c30eb786a5b811
|
|
| MD5 |
98d035fc67a05a9074255cadb41183a9
|
|
| BLAKE2b-256 |
726d33200c4095240491e0c69659524ce2ac722304f451214773801ff7d2cb0f
|
File details
Details for the file popup_kit-26.6.24.850-py3-none-any.whl.
File metadata
- Download URL: popup_kit-26.6.24.850-py3-none-any.whl
- Upload date:
- Size: 26.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8df20ec8c339f7a0261c859a2dcce1872360734fb9a1a8d24c9193dca88047e3
|
|
| MD5 |
3cf0da0a3b522f23dd385be319317a39
|
|
| BLAKE2b-256 |
fb1a4d89a6dbeefcfddf52a39e79bee5e87c78ff66b36c62ffda0c4e5df1edbc
|