jbqt 0.1.10__tar.gz → 0.1.11__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 jbqt might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jbqt
3
- Version: 0.1.10
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
@@ -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:
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "jbqt"
7
- version = "0.1.10"
7
+ version = "0.1.11"
8
8
  description = ""
9
9
  authors = [ "Joseph Bochinski <stirgejr@gmail.com>",]
10
10
  readme = "README.md"
@@ -14,4 +14,4 @@ python = "^3.12"
14
14
  pyqt6 = "^6.9.0"
15
15
  fuzzywuzzy = "^0.18.0"
16
16
  python-levenshtein = "^0.27.1"
17
- jbutils = "^0.1.1"
17
+ jbutils = "^0.1.21"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes