happyscript 0.0.10__tar.gz → 0.0.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.
Files changed (48) hide show
  1. {happyscript-0.0.10 → happyscript-0.0.11}/PKG-INFO +1 -1
  2. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/__init__.py +1 -1
  3. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/panels/panel_scripts2.py +12 -3
  4. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript.egg-info/PKG-INFO +1 -1
  5. {happyscript-0.0.10 → happyscript-0.0.11}/pyproject.toml +1 -1
  6. {happyscript-0.0.10 → happyscript-0.0.11}/README.md +0 -0
  7. {happyscript-0.0.10 → happyscript-0.0.11}/copy_code.py +0 -0
  8. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/charts/__init__.py +0 -0
  9. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/charts/chart.py +0 -0
  10. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/charts/histogram_chart.py +0 -0
  11. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/charts/histogram_series.py +0 -0
  12. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/charts/matplotlib_chart.py +0 -0
  13. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/charts/panel_charts.py +0 -0
  14. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/charts/scatter_chart.py +0 -0
  15. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/charts/scatter_series.py +0 -0
  16. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/charts/time_chart.py +0 -0
  17. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/charts/time_series.py +0 -0
  18. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/forms/form_askchoice.py +0 -0
  19. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/forms/form_askimage.py +0 -0
  20. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/forms/form_main.py +0 -0
  21. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/forms/form_ontestfailure.py +0 -0
  22. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/forms/form_serials.py +0 -0
  23. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/forms/form_stop.py +0 -0
  24. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/forms/formsbase.py +0 -0
  25. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/imglib.py +0 -0
  26. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/panels/panel_log.py +0 -0
  27. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/panels/panel_messages.py +0 -0
  28. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/panels/panel_tests.py +0 -0
  29. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/panels/panelsbase.py +0 -0
  30. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/scriptartwork.py +0 -0
  31. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/scriptcontrol.py +0 -0
  32. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/scriptexceptions.py +0 -0
  33. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/scriptgui.py +0 -0
  34. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/scriptinfo.py +0 -0
  35. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/scriptmanager.py +0 -0
  36. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/scriptparams.py +0 -0
  37. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/scriptreader.py +0 -0
  38. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/scriptrunner.py +0 -0
  39. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/testlog/global_log_handler.py +0 -0
  40. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/testlog/log_to_text.py +0 -0
  41. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/testlog/logtoxml.py +0 -0
  42. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript/testlog/printredirect.py +0 -0
  43. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript.egg-info/SOURCES.txt +0 -0
  44. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript.egg-info/dependency_links.txt +0 -0
  45. {happyscript-0.0.10 → happyscript-0.0.11}/happyscript.egg-info/top_level.txt +0 -0
  46. {happyscript-0.0.10 → happyscript-0.0.11}/increment_version.py +0 -0
  47. {happyscript-0.0.10 → happyscript-0.0.11}/publish.bat +0 -0
  48. {happyscript-0.0.10 → happyscript-0.0.11}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: happyscript
3
- Version: 0.0.10
3
+ Version: 0.0.11
4
4
  Summary: Framework for running scripts
5
5
  Requires-Python: >=3.5
6
6
  Description-Content-Type: text/markdown
@@ -1,2 +1,2 @@
1
- __version__ = "0.0.10"
1
+ __version__ = "0.0.11"
2
2
  from .scriptmanager import ScriptManager
@@ -8,11 +8,20 @@ class PanelScripts2( PanelScripts_Base):
8
8
  self.tree_root = self.treeScripts.AddRoot("DUMMY")
9
9
  self.load_treeview()
10
10
  def load_treeview(self):
11
- self.treeScripts.DeleteChildren(self.tree_root)
11
+ tree = self.treeScripts
12
+ expanded_files = list()
13
+ (child, cookie) = tree.GetFirstChild(self.tree_root)
14
+ while child.IsOk():
15
+ if tree.IsExpanded(child):
16
+ expanded_files.append(tree.GetItemText(child))
17
+ (child, cookie) = tree.GetNextChild(self.tree_root, cookie)
18
+ tree.DeleteChildren(self.tree_root)
12
19
  for modname in self._reader.get_file_list():
13
- child = self.treeScripts.AppendItem(self.tree_root, modname)
20
+ child = tree.AppendItem(self.tree_root, modname)
14
21
  for funcname in self._reader.get_func_names(modname):
15
- self.treeScripts.AppendItem(child, funcname)
22
+ tree.AppendItem(child, funcname)
23
+ if modname in expanded_files:
24
+ tree.Expand(child)
16
25
  def OnBtnReload( self, event ):
17
26
  if self._script_ctrl.is_busy():
18
27
  msg = "A script is still running. Press 'abort' first."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: happyscript
3
- Version: 0.0.10
3
+ Version: 0.0.11
4
4
  Summary: Framework for running scripts
5
5
  Requires-Python: >=3.5
6
6
  Description-Content-Type: text/markdown
@@ -17,7 +17,7 @@ build-backend = "setuptools.build_meta"
17
17
  [project]
18
18
  name = "happyscript"
19
19
  description = "Framework for running scripts"
20
- version = "0.0.10"
20
+ version = "0.0.11"
21
21
  readme = "README.md"
22
22
  requires-python = ">=3.5"
23
23
  dependencies = [ ]
File without changes
File without changes
File without changes
File without changes