make-selection 1.0.3__tar.gz → 1.0.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: make_selection
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Package for interactive command line menu
5
5
  Author-email: Steven Frazee <stevefrazee123@gmail.com>
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "make_selection"
3
- version = "1.0.3"
3
+ version = "1.0.4"
4
4
  authors = [
5
5
  { name="Steven Frazee", email="stevefrazee123@gmail.com" },
6
6
  ]
@@ -206,8 +206,10 @@ class Menu:
206
206
  def printSelected(self):
207
207
  self.clearMenu()
208
208
  if self.mode == Mode.MULTI_SELECT:
209
- if len(self.options_selected) == 1:
210
- print(f"{self.label}> ({len(self.options_selected)} item) {self.multiSelectGetValues(self.options_selected)}")
209
+ if len(self.options_selected) == 0:
210
+ print(f"{self.label}> (0 items) []")
211
+ elif len(self.options_selected) == 1:
212
+ print(f"{self.label}> (1 item) {self.multiSelectGetValues(self.options_selected)}")
211
213
  else:
212
214
  print(f"{self.label}> ({len(self.options_selected)} items) [{self.options_selected[0].value}, ...]")
213
215
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: make_selection
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Package for interactive command line menu
5
5
  Author-email: Steven Frazee <stevefrazee123@gmail.com>
6
6
  Classifier: License :: OSI Approved :: MIT License
File without changes
File without changes
File without changes