gui-utilities 1.1.4__py3-none-any.whl → 1.1.6__py3-none-any.whl
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/gui_utilities.py +26 -7
- gui_utilities/icons/checked_verification_mark_icon.png +0 -0
- gui_utilities/icons/hover_verification_mark_icon.png +0 -0
- {gui_utilities-1.1.4.dist-info → gui_utilities-1.1.6.dist-info}/METADATA +1 -1
- gui_utilities-1.1.6.dist-info/RECORD +13 -0
- gui_utilities/icons/check.svg +0 -1
- gui_utilities-1.1.4.dist-info/RECORD +0 -12
- {gui_utilities-1.1.4.dist-info → gui_utilities-1.1.6.dist-info}/WHEEL +0 -0
- {gui_utilities-1.1.4.dist-info → gui_utilities-1.1.6.dist-info}/licenses/LICENSE +0 -0
- {gui_utilities-1.1.4.dist-info → gui_utilities-1.1.6.dist-info}/top_level.txt +0 -0
gui_utilities/gui_utilities.py
CHANGED
|
@@ -204,6 +204,10 @@ def create_text_box(
|
|
|
204
204
|
disabled_background_color = "#2d2d2d",
|
|
205
205
|
disabled_border_width = 2,
|
|
206
206
|
disabled_border_color = "#4a4a4a",
|
|
207
|
+
show_text_icon_url = str(icons_dir / "show_text_icon.png"),
|
|
208
|
+
hide_text_icon_url = str(icons_dir / "hide_text_icon.png"),
|
|
209
|
+
focused_show_text_icon_url = str(icons_dir / "focused_show_text_icon.png"),
|
|
210
|
+
focused_hide_text_icon_url = str(icons_dir / "focused_hide_text_icon.png"),
|
|
207
211
|
hide_text = False
|
|
208
212
|
):
|
|
209
213
|
text_box = QLineEdit()
|
|
@@ -235,10 +239,10 @@ def create_text_box(
|
|
|
235
239
|
"""
|
|
236
240
|
text_box.setStyleSheet(style_sheet)
|
|
237
241
|
if hide_text:
|
|
238
|
-
show_text_icon = QIcon(
|
|
239
|
-
hide_text_icon = QIcon(
|
|
240
|
-
focused_show_text_icon = QIcon(
|
|
241
|
-
focused_hide_text_icon = QIcon(
|
|
242
|
+
show_text_icon = QIcon(show_text_icon_url)
|
|
243
|
+
hide_text_icon = QIcon(hide_text_icon_url)
|
|
244
|
+
focused_show_text_icon = QIcon(focused_show_text_icon_url)
|
|
245
|
+
focused_hide_text_icon = QIcon(focused_hide_text_icon_url)
|
|
242
246
|
text_box.setEchoMode(QLineEdit.EchoMode.Password)
|
|
243
247
|
toggle_text_visibility_button = QToolButton(text_box)
|
|
244
248
|
toggle_text_visibility_button.setCursor(Qt.CursorShape.PointingHandCursor)
|
|
@@ -372,8 +376,14 @@ def create_checkbox(
|
|
|
372
376
|
pressed_indicator_border_color = "#0078d7",
|
|
373
377
|
checked_indicator_border_width = 2,
|
|
374
378
|
checked_indicator_border_color = "#0078d7",
|
|
379
|
+
disabled_font_color = "#888888",
|
|
380
|
+
disabled_background_color = "#2d2d2d",
|
|
381
|
+
disabled_border_width = 1,
|
|
382
|
+
disabled_border_color = "#4a4a4a",
|
|
383
|
+
checked_verification_mark_icon_url = str(icons_dir / "checked_verification_mark_icon.png"),
|
|
384
|
+
hover_verification_mark_icon_url = str(icons_dir / "hover_verification_mark_icon.png")
|
|
375
385
|
):
|
|
376
|
-
|
|
386
|
+
check_box = QCheckBox(text)
|
|
377
387
|
style_sheet = f"""
|
|
378
388
|
QCheckBox {{
|
|
379
389
|
font-family: {font_family};
|
|
@@ -397,10 +407,19 @@ def create_checkbox(
|
|
|
397
407
|
}}
|
|
398
408
|
QCheckBox::indicator:checked {{
|
|
399
409
|
border: {checked_indicator_border_width}px solid {checked_indicator_border_color};
|
|
410
|
+
image: url({checked_verification_mark_icon_url});
|
|
411
|
+
}}
|
|
412
|
+
QCheckBox::indicator:checked:hover {{
|
|
413
|
+
image: url({hover_verification_mark_icon_url});
|
|
414
|
+
}}
|
|
415
|
+
QCheckBox::indicator:disabled {{
|
|
416
|
+
color: {disabled_font_color};
|
|
417
|
+
background-color: {disabled_background_color};
|
|
418
|
+
border: {disabled_border_width}px solid {disabled_border_color};
|
|
400
419
|
}}
|
|
401
420
|
"""
|
|
402
|
-
|
|
403
|
-
return
|
|
421
|
+
check_box.setStyleSheet(style_sheet)
|
|
422
|
+
return check_box
|
|
404
423
|
|
|
405
424
|
def create_information_message_box(
|
|
406
425
|
text,
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
gui_utilities/gui_utilities.py,sha256=VSPNVHm2H-AUTbbWNqe-dkN9JHY3U9rzGo6FVj9b1b8,31861
|
|
2
|
+
gui_utilities/icons/checked_verification_mark_icon.png,sha256=io3pvAu8cYugk5mmVGtGCKKzTSNLIINGMJcTySKv8e8,6587
|
|
3
|
+
gui_utilities/icons/focused_hide_text_icon.png,sha256=0Ysx7vC-mEVfuSBWx1Zw-UhpqvrTCcIvnQ926wFmuK4,13084
|
|
4
|
+
gui_utilities/icons/focused_show_text_icon.png,sha256=gmZU7RR4FN-9VSzpD00ZkQ8UGbihO2y808Kh3b_TaEg,6739
|
|
5
|
+
gui_utilities/icons/hide_text_icon.png,sha256=f5jq6KaAygWNjzP_Ah6dw6eu8q5ml3m56JTeNSTSgEU,7207
|
|
6
|
+
gui_utilities/icons/hover_verification_mark_icon.png,sha256=V--qmtXpVl1LNCusQEgRcJk8RU6pfzCqYCRNOoeZR5c,7382
|
|
7
|
+
gui_utilities/icons/show_text_icon.png,sha256=8Vdp2XickPEM-eTb1-qBXf3qmHldSzllMZZfObir9p8,5376
|
|
8
|
+
gui_utilities/tlds/tlds_list.txt,sha256=wIWmAQGVNsY0ZJy7qPW8kItDTCE4PTq8wcUhC2hpjkw,10916
|
|
9
|
+
gui_utilities-1.1.6.dist-info/licenses/LICENSE,sha256=NNoMFs43kWl1J-aqq7_EsPlBjL5XTccWjZlwrlCR-Xc,1093
|
|
10
|
+
gui_utilities-1.1.6.dist-info/METADATA,sha256=K3Si93gipJ-8WpqNER2ImcxrJ45gpTI1A1t8AHVsCg8,265
|
|
11
|
+
gui_utilities-1.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
+
gui_utilities-1.1.6.dist-info/top_level.txt,sha256=c4C84nMT41keiX9b1AJJZDBU3kA38c7vOmP9kDie8Lk,14
|
|
13
|
+
gui_utilities-1.1.6.dist-info/RECORD,,
|
gui_utilities/icons/check.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" viewBox="0 0 16 16"><path d="M13.822 3.322l-8.471 8.44a.75.75 0 01-1.06 0L1.535 8.982a.75.75 0 011.06-1.06l2.894 2.894 7.94-7.94a.75.75 0 011.06 0z"/></svg>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
gui_utilities/gui_utilities.py,sha256=f4dvY0GZGXsjYQQ0lBkjRXMRJbfKYx5PKBhYLxCN6m8,30900
|
|
2
|
-
gui_utilities/icons/check.svg,sha256=HHTjePt4C7XcmrMGZMBTyRTzR580bZ4IF82kEY0Y5Gw,232
|
|
3
|
-
gui_utilities/icons/focused_hide_text_icon.png,sha256=0Ysx7vC-mEVfuSBWx1Zw-UhpqvrTCcIvnQ926wFmuK4,13084
|
|
4
|
-
gui_utilities/icons/focused_show_text_icon.png,sha256=gmZU7RR4FN-9VSzpD00ZkQ8UGbihO2y808Kh3b_TaEg,6739
|
|
5
|
-
gui_utilities/icons/hide_text_icon.png,sha256=f5jq6KaAygWNjzP_Ah6dw6eu8q5ml3m56JTeNSTSgEU,7207
|
|
6
|
-
gui_utilities/icons/show_text_icon.png,sha256=8Vdp2XickPEM-eTb1-qBXf3qmHldSzllMZZfObir9p8,5376
|
|
7
|
-
gui_utilities/tlds/tlds_list.txt,sha256=wIWmAQGVNsY0ZJy7qPW8kItDTCE4PTq8wcUhC2hpjkw,10916
|
|
8
|
-
gui_utilities-1.1.4.dist-info/licenses/LICENSE,sha256=NNoMFs43kWl1J-aqq7_EsPlBjL5XTccWjZlwrlCR-Xc,1093
|
|
9
|
-
gui_utilities-1.1.4.dist-info/METADATA,sha256=SyCr2zNsu6ijbvWedKswqBKX24D5W-kwzkbCjUXdRB8,265
|
|
10
|
-
gui_utilities-1.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
-
gui_utilities-1.1.4.dist-info/top_level.txt,sha256=c4C84nMT41keiX9b1AJJZDBU3kA38c7vOmP9kDie8Lk,14
|
|
12
|
-
gui_utilities-1.1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|