jbqt 0.1.9__py3-none-any.whl → 0.1.11__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
@@ -86,6 +86,12 @@ class SIZES:
86
86
  ICON_XL = QSize(32, 32)
87
87
  ICON_XXL = QSize(48, 48)
88
88
 
89
+ @classmethod
90
+ def get(cls, key: str, default: QSize | None = None) -> QSize:
91
+ if hasattr(cls, key):
92
+ return getattr(cls, key)
93
+ return default or cls.ICON_MD
94
+
89
95
 
90
96
  def icon_dir(file_name: str) -> str:
91
97
  if QtPaths.icon_dir:
jbqt/types/__init__.py CHANGED
@@ -2,7 +2,7 @@ from collections.abc import Callable
2
2
  from typing import Optional
3
3
 
4
4
  from PyQt6.QtCore import QSize
5
- from PyQt6.QtGui import QIcon
5
+ from PyQt6.QtGui import QIcon, QColor
6
6
 
7
7
 
8
- IconGetter = Callable[[str, QSize | int | None], QIcon]
8
+ IconGetter = Callable[[str | QColor, QSize | int | None], QIcon]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jbqt
3
- Version: 0.1.9
3
+ Version: 0.1.11
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.1,<0.2.0)
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=RlUDUVHhFkBDxCV_5FSblh8dILGCJK6ryr79TsCAKYw,5670
3
+ jbqt/common/consts.py,sha256=fidWeNfILH9VFrWWFi38oviMSqTrTuIPPxv3vQFCyWg,5860
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=_ivzKAQZszyBYhmf2fp2wBJ0YOA065EVDa6n6JLbigw,185
12
+ jbqt/types/__init__.py,sha256=xLX3J1uQZDz9A1ac24M6nKFHY8pCWVax4FWGMtATbVM,202
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.9.dist-info/METADATA,sha256=y4VYBKUMd9XypciapC78XZEir-WXinuaezrgGXUclJQ,462
22
- jbqt-0.1.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
23
- jbqt-0.1.9.dist-info/RECORD,,
21
+ jbqt-0.1.11.dist-info/METADATA,sha256=60IcQvijSls3zLkRIuW-Ihv_Gj8UK57BiFiY80EMRrw,464
22
+ jbqt-0.1.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
23
+ jbqt-0.1.11.dist-info/RECORD,,
File without changes