jbqt 0.1.10__py3-none-any.whl → 0.1.12__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 jbqt might be problematic. Click here for more details.
jbqt/common/consts.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import re
|
|
3
3
|
|
|
4
|
+
from typing import Optional
|
|
4
5
|
|
|
5
6
|
import jbutils
|
|
6
7
|
|
|
@@ -86,6 +87,12 @@ class SIZES:
|
|
|
86
87
|
ICON_XL = QSize(32, 32)
|
|
87
88
|
ICON_XXL = QSize(48, 48)
|
|
88
89
|
|
|
90
|
+
@classmethod
|
|
91
|
+
def get(cls, key: str, default: QSize | None = None) -> QSize:
|
|
92
|
+
if hasattr(cls, key):
|
|
93
|
+
return getattr(cls, key)
|
|
94
|
+
return default or cls.ICON_MD
|
|
95
|
+
|
|
89
96
|
|
|
90
97
|
def icon_dir(file_name: str) -> str:
|
|
91
98
|
if QtPaths.icon_dir:
|
|
@@ -131,7 +138,10 @@ def recolor_icon(
|
|
|
131
138
|
|
|
132
139
|
|
|
133
140
|
def get_icon(file_name: str) -> IconGetter:
|
|
134
|
-
def getter(
|
|
141
|
+
def getter(
|
|
142
|
+
color: Optional[str | QColor] = "", size: QSize | int | None = None
|
|
143
|
+
) -> QIcon:
|
|
144
|
+
color = color or ""
|
|
135
145
|
if isinstance(size, int):
|
|
136
146
|
size = QSize(size, size)
|
|
137
147
|
|
jbqt/types/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: jbqt
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.12
|
|
4
4
|
Summary:
|
|
5
5
|
Author: Joseph Bochinski
|
|
6
6
|
Author-email: stirgejr@gmail.com
|
|
@@ -8,7 +8,7 @@ Requires-Python: >=3.12,<4.0
|
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.12
|
|
10
10
|
Requires-Dist: fuzzywuzzy (>=0.18.0,<0.19.0)
|
|
11
|
-
Requires-Dist: jbutils (>=0.1.
|
|
11
|
+
Requires-Dist: jbutils (>=0.1.21,<0.2.0)
|
|
12
12
|
Requires-Dist: pyqt6 (>=6.9.0,<7.0.0)
|
|
13
13
|
Requires-Dist: python-levenshtein (>=0.27.1,<0.28.0)
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
jbqt/__init__.py,sha256=JThPqSDraggKWluruHIXeE1-Kzgu6zJin-IXxX1GnLg,243
|
|
2
2
|
jbqt/common/__init__.py,sha256=WkP7IRKAuScLZpGP3AgARlegLke714OlrgihUVHMHMs,317
|
|
3
|
-
jbqt/common/consts.py,sha256=
|
|
3
|
+
jbqt/common/consts.py,sha256=9cTg9WvVeGgqtaIBYdHzZ_BR1BfITcowlaqVqefyf2Y,5940
|
|
4
4
|
jbqt/common/qt_utils.py,sha256=d81MXUIs7JTpXOaPIoGHTLZYwhry7xhCWRy9BxitlzA,2297
|
|
5
5
|
jbqt/dialogs/__init__.py,sha256=DZi-qwW75JKfTLk33bowjt9Nhn1mpOO6kmP7mSMGz0o,245
|
|
6
6
|
jbqt/dialogs/file_dialog.py,sha256=QMUxgSNt1IGLqgPgKqrEwlPjKIQ7D5qrY2cJCXmW654,1830
|
|
@@ -9,7 +9,7 @@ jbqt/dialogs/text_preview.py,sha256=5rZjMvvMPq0jenPQkxKTFsGzuebdH_EnjKsdgNzv93o,
|
|
|
9
9
|
jbqt/models/__init__.py,sha256=aQUYSr2bL9uRVdmEh_3s5pHbzM0MyKXEiO2Bqe16I8A,155
|
|
10
10
|
jbqt/models/chip_button.py,sha256=nV5hVaYKStTOTGEa0WnVi1FolxrjnLQ1E3cSCQx-YkA,283
|
|
11
11
|
jbqt/models/chips.py,sha256=ou9RJxDSm6MI10CDnWrNi1DTRMKfqIIEowLVbyoFJZg,652
|
|
12
|
-
jbqt/types/__init__.py,sha256=
|
|
12
|
+
jbqt/types/__init__.py,sha256=IdltNA7FpmXS8I3X9S-6UfOKqrhI-grNR49Nh0oxemM,212
|
|
13
13
|
jbqt/view_icons.py,sha256=dwAAtDbqs3mwtmUxsjlFYdTsD2mi5m9BRmBQm6HpU9E,6389
|
|
14
14
|
jbqt/widgets/__init__.py,sha256=WxDWM5MDnB9NkvaYxE4AiT7tFjGB9fBirEx2iZUujeU,523
|
|
15
15
|
jbqt/widgets/chip_button.py,sha256=G3WMkPmLwmNvH88dPwtqjAUKVOAA6Xl_QA4c2mhtWqc,6265
|
|
@@ -18,6 +18,6 @@ jbqt/widgets/multiselect.py,sha256=84DYA12FBZvBBsPqlxiWMjY8lsQN0MkpJwqYN3nyz8Y,6
|
|
|
18
18
|
jbqt/widgets/simple.py,sha256=-JVvNYiL05Ip7qSkt9rRFbdb-Jff6AbnuXPXOXdXoUw,1750
|
|
19
19
|
jbqt/widgets/toast.py,sha256=S85PgcydbmICnjSY5VR6KUG_UZv4UERjvE_mP_zE9GA,1179
|
|
20
20
|
jbqt/widgets/widget_utils.py,sha256=W8HkKJvTjGOB6wRR2D1sFzd673yEpPHNn-njjkM-1HE,2225
|
|
21
|
-
jbqt-0.1.
|
|
22
|
-
jbqt-0.1.
|
|
23
|
-
jbqt-0.1.
|
|
21
|
+
jbqt-0.1.12.dist-info/METADATA,sha256=QachurfM-K2j5Pwff9BorEdRAEzoYVNLerc0a4diOAw,464
|
|
22
|
+
jbqt-0.1.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
23
|
+
jbqt-0.1.12.dist-info/RECORD,,
|
|
File without changes
|