jbqt 0.1.5__tar.gz → 0.1.7__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.5
3
+ Version: 0.1.7
4
4
  Summary:
5
5
  Author: Joseph Bochinski
6
6
  Author-email: stirgejr@gmail.com
@@ -160,7 +160,7 @@ class ICONS:
160
160
  SYNC = get_icon("sync.png")
161
161
 
162
162
  @classmethod
163
- def get(cls, name: str, default: str = "") -> str:
163
+ def get(cls, name: str, default: str = "") -> QIcon | str:
164
164
  if hasattr(cls, name):
165
165
  return getattr(cls, name)
166
166
  else:
@@ -151,12 +151,13 @@ class ChipButton(IChipButton):
151
151
 
152
152
  def toggle_hidden(self, hide: bool = True) -> None:
153
153
  for widget in self.widgets:
154
- is_input = widget in self.input_widgets
154
+ if widget:
155
+ is_input = widget in self.input_widgets
155
156
 
156
- if hide == is_input:
157
- widget.hide()
158
- else:
159
- widget.show()
157
+ if hide == is_input:
158
+ widget.hide()
159
+ else:
160
+ widget.show()
160
161
 
161
162
  def cancel(self) -> None:
162
163
  self.toggle_hidden()
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "jbqt"
7
- version = "0.1.5"
7
+ version = "0.1.7"
8
8
  description = ""
9
9
  authors = [ "Joseph Bochinski <stirgejr@gmail.com>",]
10
10
  readme = "README.md"
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