gui-utilities 1.0.0__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.
Potentially problematic release.
This version of gui-utilities might be problematic. Click here for more details.
- gui_utilities-1.0.0/LICENSE +21 -0
- gui_utilities-1.0.0/PKG-INFO +9 -0
- gui_utilities-1.0.0/README.md +77 -0
- gui_utilities-1.0.0/gui_utilities/gui_utilities.py +642 -0
- gui_utilities-1.0.0/gui_utilities/icons/focused_hide_text_icon.png +0 -0
- gui_utilities-1.0.0/gui_utilities/icons/focused_show_text_icon.png +0 -0
- gui_utilities-1.0.0/gui_utilities/icons/hide_text_icon.png +0 -0
- gui_utilities-1.0.0/gui_utilities/icons/show_text_icon.png +0 -0
- gui_utilities-1.0.0/gui_utilities/tlds/tlds_list.txt +1438 -0
- gui_utilities-1.0.0/gui_utilities.egg-info/PKG-INFO +9 -0
- gui_utilities-1.0.0/gui_utilities.egg-info/SOURCES.txt +14 -0
- gui_utilities-1.0.0/gui_utilities.egg-info/dependency_links.txt +1 -0
- gui_utilities-1.0.0/gui_utilities.egg-info/requires.txt +1 -0
- gui_utilities-1.0.0/gui_utilities.egg-info/top_level.txt +1 -0
- gui_utilities-1.0.0/pyproject.toml +20 -0
- gui_utilities-1.0.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Guido Iván Gross
|
|
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,9 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: gui_utilities
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Librería de utilidades gráficas en PyQt6
|
|
5
|
+
Author-email: Guido Iván Gross <grossguidoivan@gmail.com>
|
|
6
|
+
Requires-Python: >=3.8
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Dist: PyQt6
|
|
9
|
+
Dynamic: license-file
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# GUI Utilities
|
|
2
|
+
|
|
3
|
+
Personal use library with utilities for building stylish and reusable PyQt6 UI components.
|
|
4
|
+
|
|
5
|
+
/----------------------------------------------------------------------------------------------------/
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
/----------------------------------------------------------------------------------------------------/
|
|
10
|
+
|
|
11
|
+
### UI Components
|
|
12
|
+
|
|
13
|
+
- create_window(): creates a base window already configured with layout and initial styles.
|
|
14
|
+
|
|
15
|
+
- create_label(): creates customized labels.
|
|
16
|
+
|
|
17
|
+
- create_button(): creates customized buttons.
|
|
18
|
+
|
|
19
|
+
- create_text_box(): creates customized text boxes.
|
|
20
|
+
|
|
21
|
+
- create_combo_box(): creates customized drop-down lists.
|
|
22
|
+
|
|
23
|
+
- create_information_message_box(): creates customized information dialog boxes.
|
|
24
|
+
|
|
25
|
+
- create_confirmation_message_box(): creates customized confirmation dialog boxes.
|
|
26
|
+
|
|
27
|
+
- confirm_exit(): creates a confirmation dialog box to exit the application.
|
|
28
|
+
|
|
29
|
+
/----------------------------------------------------------------------------------------------------/
|
|
30
|
+
|
|
31
|
+
### Window & Layout Control
|
|
32
|
+
|
|
33
|
+
- switch_instance(): dynamically switches the content of the main window's "central_widget".
|
|
34
|
+
|
|
35
|
+
- get_responsive_width(): calculates a responsive width based on screen size to maintain an adaptive UI.
|
|
36
|
+
|
|
37
|
+
/----------------------------------------------------------------------------------------------------/
|
|
38
|
+
|
|
39
|
+
### Input Validation
|
|
40
|
+
|
|
41
|
+
- validate_string(): checks that the input is not empty.
|
|
42
|
+
|
|
43
|
+
- validate_integer(): checks that the input contains only integer numbers (supports European numeric formatting).
|
|
44
|
+
|
|
45
|
+
- validate_id(): checks that the input is an Argentinian D.N.I. (supports European numeric formatting).
|
|
46
|
+
|
|
47
|
+
- validate_cellphone_number(): checks Argentinian cellphone numbers with ten digits.
|
|
48
|
+
|
|
49
|
+
- validate_email(): checks emails using an updated list of domains (TLDs) from IANA or local cache.
|
|
50
|
+
|
|
51
|
+
/----------------------------------------------------------------------------------------------------/
|
|
52
|
+
|
|
53
|
+
#### TLDs management (E-mail validation)
|
|
54
|
+
|
|
55
|
+
- get_tlds(): obtains an updated list of TLDs from IANA; if it fails, uses the local list.
|
|
56
|
+
|
|
57
|
+
- export_tlds(): saves the list of TLDs locally for offline use.
|
|
58
|
+
|
|
59
|
+
- import_tlds(): loads the locally saved TLDs if internet access is unavailable.
|
|
60
|
+
|
|
61
|
+
- build_email_pattern(): dynamically generates the regular expression that validates emails using TLDs.
|
|
62
|
+
|
|
63
|
+
/----------------------------------------------------------------------------------------------------/
|
|
64
|
+
|
|
65
|
+
### Formatting helpers
|
|
66
|
+
|
|
67
|
+
- decimal_format(): applies European number formatting.
|
|
68
|
+
|
|
69
|
+
- format_id(): applies correct formatting to Argentinian D.N.I.'s according to length using European number formatting.
|
|
70
|
+
|
|
71
|
+
- cellphone_number_format(): applies correct formatting to Argentinian cellphone numbers.
|
|
72
|
+
|
|
73
|
+
/----------------------------------------------------------------------------------------------------/
|
|
74
|
+
|
|
75
|
+
## Installation
|
|
76
|
+
|
|
77
|
+
pip install gui_utilities
|