jbqt 0.1.17__tar.gz → 0.1.18__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.

Files changed (47) hide show
  1. {jbqt-0.1.17 → jbqt-0.1.18}/PKG-INFO +2 -2
  2. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/widgets/chips.py +10 -2
  3. {jbqt-0.1.17 → jbqt-0.1.18}/pyproject.toml +2 -2
  4. {jbqt-0.1.17 → jbqt-0.1.18}/README.md +0 -0
  5. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/__init__.py +0 -0
  6. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/common/__init__.py +0 -0
  7. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/common/__pycache__/__init__.cpython-312.pyc +0 -0
  8. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/common/__pycache__/qt_utils.cpython-312.pyc +0 -0
  9. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/common/qt_utils.py +0 -0
  10. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/consts/__init__.py +0 -0
  11. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/consts/__pycache__/__init__.cpython-312.pyc +0 -0
  12. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/dialogs/__init__.py +0 -0
  13. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/dialogs/__pycache__/__init__.cpython-312.pyc +0 -0
  14. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/dialogs/__pycache__/file_dialog.cpython-312.pyc +0 -0
  15. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/dialogs/__pycache__/input_form.cpython-312.pyc +0 -0
  16. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/dialogs/__pycache__/single_input.cpython-312.pyc +0 -0
  17. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/dialogs/__pycache__/text_preview.cpython-312.pyc +0 -0
  18. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/dialogs/file_dialog.py +0 -0
  19. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/dialogs/input_form.py +0 -0
  20. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/dialogs/single_input.py +0 -0
  21. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/dialogs/text_preview.py +0 -0
  22. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/__init__.py +0 -0
  23. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/__pycache__/__init__.cpython-312.pyc +0 -0
  24. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/__pycache__/chip_button.cpython-312.pyc +0 -0
  25. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/__pycache__/chips.cpython-312.pyc +0 -0
  26. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/__pycache__/dialog_options.cpython-312.pyc +0 -0
  27. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/__pycache__/model_consts.cpython-312.pyc +0 -0
  28. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/__pycache__/model_utils.cpython-312.pyc +0 -0
  29. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/__pycache__/toolbar_button.cpython-312.pyc +0 -0
  30. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/chip_button.py +0 -0
  31. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/chips.py +0 -0
  32. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/dialog_options.py +0 -0
  33. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/model_consts.py +0 -0
  34. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/model_utils.py +0 -0
  35. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/models/toolbar_button.py +0 -0
  36. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/types/__init__.py +0 -0
  37. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/types/__pycache__/__init__.cpython-312.pyc +0 -0
  38. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/view_icons.py +0 -0
  39. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/widgets/__init__.py +0 -0
  40. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/widgets/__pycache__/__init__.cpython-312.pyc +0 -0
  41. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/widgets/__pycache__/chip_button.cpython-312.pyc +0 -0
  42. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/widgets/__pycache__/simple.cpython-312.pyc +0 -0
  43. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/widgets/chip_button.py +0 -0
  44. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/widgets/multiselect.py +0 -0
  45. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/widgets/simple.py +0 -0
  46. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/widgets/toast.py +0 -0
  47. {jbqt-0.1.17 → jbqt-0.1.18}/jbqt/widgets/widget_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jbqt
3
- Version: 0.1.17
3
+ Version: 0.1.18
4
4
  Summary:
5
5
  Author: Joseph Bochinski
6
6
  Author-email: stirgejr@gmail.com
@@ -9,7 +9,7 @@ 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
11
  Requires-Dist: jbconsts (>=0.1.1,<0.2.0)
12
- Requires-Dist: jbutils (>=0.1.24,<0.2.0)
12
+ Requires-Dist: jbutils (>=0.1.27,<0.2.0)
13
13
  Requires-Dist: pyqt6 (>=6.9.0,<7.0.0)
14
14
  Requires-Dist: python-levenshtein (>=0.27.1,<0.28.0)
15
15
  Requires-Dist: rich (>=14.0.0,<15.0.0)
@@ -96,7 +96,7 @@ class ChipsWidget(IChipsWidget):
96
96
  input_layout = QHBoxLayout()
97
97
  self.input_field = QLineEdit(self)
98
98
  self.add_button = QPushButton("Add", self)
99
- self.add_button.clicked.connect(self.add_chip)
99
+ self.add_button.clicked.connect(self.parse_chip_input)
100
100
 
101
101
  self.clear_button = QPushButton(consts.ICONS.TRASH("darkred"), "", self)
102
102
  self.clear_button.clicked.connect(self.remove_all)
@@ -124,7 +124,7 @@ class ChipsWidget(IChipsWidget):
124
124
  if a1.type() == QEvent.Type.KeyPress and focus == self.input_field:
125
125
  match a1.key():
126
126
  case Qt.Key.Key_Return | Qt.Key.Key_Enter:
127
- self.add_chip()
127
+ self.parse_chip_input()
128
128
  return super().eventFilter(a0, a1)
129
129
 
130
130
  def get_unweight_chip(self, tag: str) -> str:
@@ -221,8 +221,16 @@ class ChipsWidget(IChipsWidget):
221
221
  def emit_changes(self):
222
222
  self.valuesChanged.emit(self.values)
223
223
 
224
+ def parse_chip_input(self) -> None:
225
+ text = self.input_field.text().strip()
226
+ if "," in text:
227
+ self.add_chips(utils.parse_csv_line(text))
228
+ else:
229
+ self.add_chip()
230
+
224
231
  def add_chip(self):
225
232
  text = self.input_field.text().strip()
233
+
226
234
  if text and text not in self.values:
227
235
  chip_button = ChipButton(text, self.update_chip, self.remove_chip)
228
236
 
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "jbqt"
7
- version = "0.1.17"
7
+ version = "0.1.18"
8
8
  description = ""
9
9
  authors = [ "Joseph Bochinski <stirgejr@gmail.com>",]
10
10
  readme = "README.md"
@@ -16,4 +16,4 @@ fuzzywuzzy = "^0.18.0"
16
16
  python-levenshtein = "^0.27.1"
17
17
  jbconsts = "^0.1.1"
18
18
  rich = "^14.0.0"
19
- jbutils = "^0.1.24"
19
+ jbutils = "^0.1.27"
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
File without changes
File without changes