happyscript 0.0.28__tar.gz → 0.0.34__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 (53) hide show
  1. {happyscript-0.0.28 → happyscript-0.0.34}/PKG-INFO +2 -1
  2. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/__init__.py +1 -1
  3. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/charts/matplotlib_chart.py +1 -16
  4. happyscript-0.0.34/happyscript/splashmenu/exit.png +0 -0
  5. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/userpanel/userpanel.py +19 -19
  6. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript.egg-info/PKG-INFO +2 -1
  7. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript.egg-info/SOURCES.txt +1 -0
  8. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript.egg-info/requires.txt +1 -0
  9. {happyscript-0.0.28 → happyscript-0.0.34}/pyproject.toml +7 -4
  10. {happyscript-0.0.28 → happyscript-0.0.34}/README.md +0 -0
  11. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/charts/__init__.py +0 -0
  12. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/charts/chart.py +0 -0
  13. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/charts/histogram_chart.py +0 -0
  14. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/charts/histogram_series.py +0 -0
  15. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/charts/panel_charts.py +0 -0
  16. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/charts/scatter_chart.py +0 -0
  17. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/charts/scatter_series.py +0 -0
  18. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/charts/time_chart.py +0 -0
  19. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/charts/time_series.py +0 -0
  20. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/forms/form_askchoice.py +0 -0
  21. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/forms/form_askimage.py +0 -0
  22. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/forms/form_main.py +0 -0
  23. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/forms/form_ontestfailure.py +0 -0
  24. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/forms/form_serials.py +0 -0
  25. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/forms/form_stop.py +0 -0
  26. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/forms/formsbase.py +0 -0
  27. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/imglib.py +0 -0
  28. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/panels/panel_log.py +0 -0
  29. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/panels/panel_messages.py +0 -0
  30. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/panels/panel_scripts2.py +0 -0
  31. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/panels/panel_tests.py +0 -0
  32. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/panels/panelsbase.py +0 -0
  33. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/scriptartwork.py +0 -0
  34. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/scriptcontrol.py +0 -0
  35. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/scriptexceptions.py +0 -0
  36. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/scriptgui.py +0 -0
  37. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/scriptinfo.py +0 -0
  38. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/scriptmanager.py +0 -0
  39. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/scriptparams.py +0 -0
  40. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/scriptreader.py +0 -0
  41. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/scriptrunner.py +0 -0
  42. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/splashmenu/forms.py +0 -0
  43. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/splashmenu/splashmenuform.py +0 -0
  44. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/splashmenu/splashmenumain.py +0 -0
  45. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/testlog/global_log_handler.py +0 -0
  46. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/testlog/log_to_text.py +0 -0
  47. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/testlog/logtoxml.py +0 -0
  48. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/testlog/printredirect.py +0 -0
  49. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/userpanel/userpaneltimer.py +0 -0
  50. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript/userpanel/userpanelvalue.py +0 -0
  51. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript.egg-info/dependency_links.txt +0 -0
  52. {happyscript-0.0.28 → happyscript-0.0.34}/happyscript.egg-info/top_level.txt +0 -0
  53. {happyscript-0.0.28 → happyscript-0.0.34}/setup.cfg +0 -0
@@ -1,10 +1,11 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: happyscript
3
- Version: 0.0.28
3
+ Version: 0.0.34
4
4
  Summary: Framework for running scripts
5
5
  Requires-Python: >=3.5
6
6
  Description-Content-Type: text/markdown
7
7
  Requires-Dist: wxpython
8
+ Requires-Dist: numpy
8
9
 
9
10
 
10
11
  More info coming soon...
@@ -1,6 +1,6 @@
1
1
  """HappyScript - handy script launcher"""
2
2
 
3
- __version__ = "0.0.28"
3
+ __version__ = "0.0.34"
4
4
 
5
5
  # With these statements, after doing 'import happyscript' you can do 'xxx = happyscript.ScriptManager()'
6
6
  #from .scriptmanager import ScriptManager
@@ -17,24 +17,9 @@ try:
17
17
  HAVE_MATPLOTLIB = True
18
18
  except ImportError:
19
19
  HAVE_MATPLOTLIB = False
20
-
21
-
22
- # fig_canvas_toolbar = dict()
23
- #
24
- # old_panels = dict()
25
20
 
26
21
  class MatPlotLibChart(wx.Panel):
27
22
 
28
- # @classmethod
29
- # def create(cls, parent_control, name):
30
- #
31
- # if not name in old_panels:
32
- # panel = MatPlotLibChart(parent_control, name)
33
- # old_panels[name] = panel
34
- #
35
- # return old_panels[name]
36
-
37
-
38
23
  def __init__(self, parent_control, name):
39
24
  '''
40
25
  Constructor
@@ -83,7 +68,7 @@ class MatPlotLibChart(wx.Panel):
83
68
  return self.__name
84
69
 
85
70
  @property
86
- def figure(self) -> Figure:
71
+ def figure(self) -> 'Figure':
87
72
  return self.__figure
88
73
 
89
74
  def configure(self, /, x_label=None, y_label=None, title=None,
@@ -118,25 +118,25 @@ class UserPanel(wx.Panel):
118
118
  self.__insert_button("Set", lambda *args: smart_input.set(), 0)
119
119
  return smart_input
120
120
 
121
- def add_timer_control(self, default, min, max, interval_callback, *args, **kwargs):
122
- """allows the user to periodically trigger a callback
123
- the timer interval is set with a spin control
124
- pressing start or stop will (re)start or stop the interval timer
125
-
126
- Arguments:
127
- default -- inverval default value
128
- min -- interval minimum value
129
- max -- interval maximum value
130
- interval_callback -- callback to be triggered each interval. any number of arguments can be passed via *args and **kwargs (interval_callback(*args, **kwargs))
131
- """
132
- self.__current_sub_box = self.__create_boxsizer(wx.HORIZONTAL, 0)
133
- self.__insert_label("Interval (s)", 0)
134
- spin_obj = self.__insert_spin_control(default, min, max, 1)
135
-
136
- timer = UserPanelTimer(UserPanelValue(spin_obj), interval_callback, *args, **kwargs)
137
- self.__timers.append(timer)
138
- self.__insert_button("Start", lambda *args: timer.restart(), 0)
139
- self.__insert_button("Stop", lambda *args: timer.stop(), 0)
121
+ # def add_timer_control(self, default, min, max, interval_callback, *args, **kwargs):
122
+ # """allows the user to periodically trigger a callback
123
+ # the timer interval is set with a spin control
124
+ # pressing start or stop will (re)start or stop the interval timer
125
+
126
+ # Arguments:
127
+ # default -- inverval default value
128
+ # min -- interval minimum value
129
+ # max -- interval maximum value
130
+ # interval_callback -- callback to be triggered each interval. any number of arguments can be passed via *args and **kwargs (interval_callback(*args, **kwargs))
131
+ # """
132
+ # self.__current_sub_box = self.__create_boxsizer(wx.HORIZONTAL, 0)
133
+ # self.__insert_label("Interval (s)", 0)
134
+ # spin_obj = self.__insert_spin_control(default, min, max, 1)
135
+
136
+ # timer = UserPanelTimer(UserPanelValue(spin_obj), interval_callback, *args, **kwargs)
137
+ # self.__timers.append(timer)
138
+ # self.__insert_button("Start", lambda *args: timer.restart(), 0)
139
+ # self.__insert_button("Stop", lambda *args: timer.stop(), 0)
140
140
 
141
141
  """
142
142
  private methods
@@ -1,10 +1,11 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: happyscript
3
- Version: 0.0.28
3
+ Version: 0.0.34
4
4
  Summary: Framework for running scripts
5
5
  Requires-Python: >=3.5
6
6
  Description-Content-Type: text/markdown
7
7
  Requires-Dist: wxpython
8
+ Requires-Dist: numpy
8
9
 
9
10
 
10
11
  More info coming soon...
@@ -38,6 +38,7 @@ happyscript/panels/panel_messages.py
38
38
  happyscript/panels/panel_scripts2.py
39
39
  happyscript/panels/panel_tests.py
40
40
  happyscript/panels/panelsbase.py
41
+ happyscript/splashmenu/exit.png
41
42
  happyscript/splashmenu/forms.py
42
43
  happyscript/splashmenu/splashmenuform.py
43
44
  happyscript/splashmenu/splashmenumain.py
@@ -17,14 +17,17 @@ build-backend = "setuptools.build_meta"
17
17
  [project]
18
18
  name = "happyscript"
19
19
  description = "Framework for running scripts"
20
- version = "0.0.28"
20
+ version = "0.0.34"
21
21
  readme = "README.md"
22
22
  requires-python = ">=3.5"
23
- dependencies = [ "wxpython" ]
23
+ dependencies = [ "wxpython", "numpy" ]
24
24
 
25
- [tool.setuptools]
26
- include-package-data = false
25
+ #[tool.setuptools]
26
+ #include-package-data = true
27
27
 
28
28
  [tool.setuptools.packages.find]
29
29
  include = ["happyscript*"]
30
30
  exclude = ["artwork*","demo*","examples*"]
31
+
32
+ [tool.setuptools.package-data]
33
+ "*" = ["*.png"]
File without changes
File without changes