popup-kit 26.6.24.850__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Want-Want
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,65 @@
1
+ Metadata-Version: 2.4
2
+ Name: popup_kit
3
+ Version: 26.6.24.850
4
+ Summary: 基于 PySide6 的自定义弹窗组件库,提供日期选择器、时间选择器、数字键盘、按钮选择器等UI组件
5
+ Author-email: Want-Want <admin@want-want.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/want-want/popup_kit
8
+ Project-URL: Repository, https://github.com/want-want/popup_kit.git
9
+ Keywords: pyside6,pyqt,widgets,popup,datepicker,numberpad,ui
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Operating System :: OS Independent
20
+ Requires-Python: >=3.8
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: PySide6>=6.5.0
24
+ Provides-Extra: dev
25
+ Requires-Dist: pytest>=7.0; extra == "dev"
26
+ Requires-Dist: pytest-qt>=4.0; extra == "dev"
27
+ Dynamic: license-file
28
+
29
+ # popup_kit
30
+
31
+ 基于 PySide6 的自定义弹窗组件库,提供日期选择器、时间选择器、数字键盘、按钮选择器等UI组件,所有弹窗均支持屏幕边界检测。
32
+
33
+ ## 功能特性
34
+
35
+ - **日期选择器**:可视化日历弹窗,支持日期范围限制和今天快捷选择
36
+ - **时间选择器**:小时/分钟调节,支持上下限时间限制
37
+ - **数字键盘**:自定义数字输入弹窗,支持整数/小数/负数模式
38
+ - **按钮选择器**:选项按钮弹窗,支持自定义选项和密码认证
39
+ - **屏幕边界检测**:所有弹窗自动检测屏幕边界,防止溢出
40
+
41
+ ## 安装
42
+
43
+ ```bash
44
+ pip install popup_kit
45
+ ```
46
+
47
+ ## 快速开始
48
+
49
+ ```python
50
+ from popup_kit import DateLineEdit, NumberPadDelegate, TimePickerPopup
51
+
52
+ # 日期选择器
53
+ date_edit = DateLineEdit()
54
+
55
+ # 数字键盘委托
56
+ delegate = NumberPadDelegate(allow_float=True)
57
+
58
+ # 时间选择弹窗
59
+ time_popup = TimePickerPopup(initial_time="14:30")
60
+ time_popup.time_selected.connect(lambda t: print(f"选择了: {t}"))
61
+ ```
62
+
63
+ ## 许可证
64
+
65
+ MIT License
@@ -0,0 +1,37 @@
1
+ # popup_kit
2
+
3
+ 基于 PySide6 的自定义弹窗组件库,提供日期选择器、时间选择器、数字键盘、按钮选择器等UI组件,所有弹窗均支持屏幕边界检测。
4
+
5
+ ## 功能特性
6
+
7
+ - **日期选择器**:可视化日历弹窗,支持日期范围限制和今天快捷选择
8
+ - **时间选择器**:小时/分钟调节,支持上下限时间限制
9
+ - **数字键盘**:自定义数字输入弹窗,支持整数/小数/负数模式
10
+ - **按钮选择器**:选项按钮弹窗,支持自定义选项和密码认证
11
+ - **屏幕边界检测**:所有弹窗自动检测屏幕边界,防止溢出
12
+
13
+ ## 安装
14
+
15
+ ```bash
16
+ pip install popup_kit
17
+ ```
18
+
19
+ ## 快速开始
20
+
21
+ ```python
22
+ from popup_kit import DateLineEdit, NumberPadDelegate, TimePickerPopup
23
+
24
+ # 日期选择器
25
+ date_edit = DateLineEdit()
26
+
27
+ # 数字键盘委托
28
+ delegate = NumberPadDelegate(allow_float=True)
29
+
30
+ # 时间选择弹窗
31
+ time_popup = TimePickerPopup(initial_time="14:30")
32
+ time_popup.time_selected.connect(lambda t: print(f"选择了: {t}"))
33
+ ```
34
+
35
+ ## 许可证
36
+
37
+ MIT License
@@ -0,0 +1,44 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "popup_kit"
7
+ version = "26.6.24.850"
8
+ description = "基于 PySide6 的自定义弹窗组件库,提供日期选择器、时间选择器、数字键盘、按钮选择器等UI组件"
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ requires-python = ">=3.8"
12
+ authors = [
13
+ {name = "Want-Want", email = "admin@want-want.com"},
14
+ ]
15
+ keywords = ["pyside6", "pyqt", "widgets", "popup", "datepicker", "numberpad", "ui"]
16
+ classifiers = [
17
+ "Development Status :: 4 - Beta",
18
+ "Intended Audience :: Developers",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.8",
22
+ "Programming Language :: Python :: 3.9",
23
+ "Programming Language :: Python :: 3.10",
24
+ "Programming Language :: Python :: 3.11",
25
+ "Programming Language :: Python :: 3.12",
26
+ "Operating System :: OS Independent",
27
+ ]
28
+ dependencies = [
29
+ "PySide6>=6.5.0",
30
+ ]
31
+
32
+ [project.optional-dependencies]
33
+ dev = [
34
+ "pytest>=7.0",
35
+ "pytest-qt>=4.0",
36
+ ]
37
+
38
+ [project.urls]
39
+ Homepage = "https://github.com/want-want/popup_kit"
40
+ Repository = "https://github.com/want-want/popup_kit.git"
41
+
42
+ [tool.setuptools.packages.find]
43
+ where = ["src"]
44
+ include = ["popup_kit"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,34 @@
1
+ """
2
+ popup_kit - 自定义UI弹窗组件库
3
+
4
+ 提供基于 PySide6 的自定义弹窗组件,包括日期选择器、时间选择器、
5
+ 数字键盘、按钮选择器等,所有弹窗均支持屏幕边界检测。
6
+ """
7
+
8
+ __version__ = "26.6.24.850"
9
+
10
+ from .popup_base import PopupBase
11
+ from .date_picker import DatePickerPopup, DateLineEdit, DatePickerDelegate
12
+ from .number_pad import NumberPadPopup, NumberPadDelegate
13
+ from .time_picker import TimeLimitMode, TimePickerPopup, TimePickerDelegate
14
+ from .button_selector import (
15
+ ButtonPopupSelector,
16
+ ButtonPopupSelectorDelegate,
17
+ AuthButtonPopupSelectorDelegate,
18
+ )
19
+
20
+ __all__ = [
21
+ "__version__",
22
+ "PopupBase",
23
+ "DatePickerPopup",
24
+ "DateLineEdit",
25
+ "DatePickerDelegate",
26
+ "NumberPadPopup",
27
+ "NumberPadDelegate",
28
+ "TimeLimitMode",
29
+ "TimePickerPopup",
30
+ "TimePickerDelegate",
31
+ "ButtonPopupSelector",
32
+ "ButtonPopupSelectorDelegate",
33
+ "AuthButtonPopupSelectorDelegate",
34
+ ]