Skip to main content

基于 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

popup_kit-26.6.24.850-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page