auto-options-python 0.1.7__tar.gz → 1.0.8__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.
Files changed (46) hide show
  1. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/PKG-INFO +1 -1
  2. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/auto_options_python.egg-info/PKG-INFO +1 -1
  3. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/_version.py +3 -3
  4. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/widget.py +1 -1
  5. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/scratch/options.py +9 -3
  6. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/.github/workflows/create_doc.yml +0 -0
  7. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/.github/workflows/test_and_deploy.yml +0 -0
  8. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/.gitignore +0 -0
  9. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/LICENSE +0 -0
  10. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/README.md +0 -0
  11. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/Makefile +0 -0
  12. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/make.bat +0 -0
  13. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/source/auto-options-python.rst +0 -0
  14. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/source/autooptions.array_util.rst +0 -0
  15. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/source/autooptions.napari_util.rst +0 -0
  16. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/source/autooptions.options.rst +0 -0
  17. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/source/autooptions.qtutil.rst +0 -0
  18. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/source/autooptions.widget.rst +0 -0
  19. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/source/conf.py +0 -0
  20. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/source/index.rst +0 -0
  21. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/source/modules.rst +0 -0
  22. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/source/user/installation.rst +0 -0
  23. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/source/user/introduction.rst +0 -0
  24. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/docs/source/user/user_documentation.rst +0 -0
  25. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/pyproject.toml +0 -0
  26. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/setup.cfg +0 -0
  27. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/auto_options_python.egg-info/SOURCES.txt +0 -0
  28. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/auto_options_python.egg-info/dependency_links.txt +0 -0
  29. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/auto_options_python.egg-info/requires.txt +0 -0
  30. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/auto_options_python.egg-info/top_level.txt +0 -0
  31. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/__init__.py +0 -0
  32. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/_tests/__init__.py +0 -0
  33. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/_tests/test_array_util.py +0 -0
  34. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/_tests/test_layouts.py +0 -0
  35. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/_tests/test_napari_util.py +0 -0
  36. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/_tests/test_options.py +0 -0
  37. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/_tests/test_qtutil.py +0 -0
  38. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/_tests/test_widget.py +0 -0
  39. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/array_util.py +0 -0
  40. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/layouts/__init__.py +0 -0
  41. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/layouts/base_layout.py +0 -0
  42. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/layouts/grid_layout.py +0 -0
  43. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/layouts/vertical_layout.py +0 -0
  44. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/napari_util.py +0 -0
  45. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/options.py +0 -0
  46. {auto_options_python-0.1.7 → auto_options_python-1.0.8}/src/autooptions/qtutil.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: auto-options-python
3
- Version: 0.1.7
3
+ Version: 1.0.8
4
4
  Summary: Manage command options in Python and create QWidgets for them.
5
5
  Author-email: Volker Baecker <volker.baecker@mri.cnrs.fr>, Clément Benedetti <clement.benedetti@mri.cnrs.fr>
6
6
  License: MIT License
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: auto-options-python
3
- Version: 0.1.7
3
+ Version: 1.0.8
4
4
  Summary: Manage command options in Python and create QWidgets for them.
5
5
  Author-email: Volker Baecker <volker.baecker@mri.cnrs.fr>, Clément Benedetti <clement.benedetti@mri.cnrs.fr>
6
6
  License: MIT License
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.1.7'
22
- __version_tuple__ = version_tuple = (0, 1, 7)
21
+ __version__ = version = '1.0.8'
22
+ __version_tuple__ = version_tuple = (1, 0, 8)
23
23
 
24
- __commit_id__ = commit_id = 'g0de8a65d0'
24
+ __commit_id__ = commit_id = 'g8b8e2d997'
@@ -393,7 +393,7 @@ class OptionsWidget(QWidget):
393
393
  if not isEnabled:
394
394
  item["value"] = None
395
395
  continue
396
- if item["type"] in ["image", "choice", "fft"]:
396
+ if item["type"] in ["image", "labels", "points", "choice", "fft"]:
397
397
  text = widget.currentText()
398
398
  item["value"] = text
399
399
  if item["type"] == "int":
@@ -17,19 +17,25 @@ class Client:
17
17
 
18
18
  def onInputChanged(self, value):
19
19
  if not value.isnumeric():
20
- self.widget.widgets["size xy"].setText(str(self.options.value("size xy")))
20
+ self.widget.widgets["size xy"][1].setText(str(self.options.value("size xy")))
21
+
22
+
23
+ def onChoiceChanged(self, value):
24
+ print("choice changed")
21
25
 
22
26
 
23
27
  def showOptions(self):
24
28
  # Create a Qt widget, which will be our window.
25
29
  self.options = Options("Test_Auto_Options", "Median Filter")
26
30
  self.options.addImage('image', value=None, transient=True)
31
+ self.options.addLabels()
32
+ self.options.addPoints()
27
33
  self.options.addInt('size xy', value=3, widget="input", callback=self.onInputChanged)
28
34
  self.options.addInt('size z', value=1, widget="input")
29
- self.options.addChoice('footprint', value=None, choices=["none", "cube", "ball", "octahedron"])
35
+ self.options.addChoice('footprint', value=None, choices=["none", "cube", "ball", "octahedron"], callback=self.onChoiceChanged)
30
36
  self.options.addInt('radius', value=1, widget="input")
31
37
  self.options.load()
32
- self.widget = OptionsWidget(self.viewer, self.options, self, sameRowMap={"size z": True})
38
+ self.widget = OptionsWidget(self.viewer, self.options, client=self, sameRowSet={"size z": True}, layout_type="vertical")
33
39
  self.widget.addApplyButton(self.onApplyButtonClicked)
34
40
  #self.widget.addOKButton(None)
35
41
  #self.widget.addCancelButton(None)