happyscript 0.0.9__tar.gz → 0.0.10__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.9 → happyscript-0.0.10}/PKG-INFO +1 -1
  2. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/__init__.py +1 -1
  3. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/form_main.py +3 -0
  4. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/panels/panel_log.py +3 -1
  5. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/panels/panel_messages.py +3 -1
  6. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/panels/panel_tests.py +2 -1
  7. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptmanager.py +2 -0
  8. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript.egg-info/PKG-INFO +1 -1
  9. {happyscript-0.0.9 → happyscript-0.0.10}/pyproject.toml +1 -1
  10. {happyscript-0.0.9 → happyscript-0.0.10}/README.md +0 -0
  11. {happyscript-0.0.9 → happyscript-0.0.10}/copy_code.py +0 -0
  12. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/__init__.py +0 -0
  13. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/chart.py +0 -0
  14. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/histogram_chart.py +0 -0
  15. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/histogram_series.py +0 -0
  16. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/matplotlib_chart.py +0 -0
  17. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/panel_charts.py +0 -0
  18. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/scatter_chart.py +0 -0
  19. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/scatter_series.py +0 -0
  20. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/time_chart.py +0 -0
  21. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/time_series.py +0 -0
  22. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/form_askchoice.py +0 -0
  23. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/form_askimage.py +0 -0
  24. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/form_ontestfailure.py +0 -0
  25. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/form_serials.py +0 -0
  26. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/form_stop.py +0 -0
  27. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/formsbase.py +0 -0
  28. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/imglib.py +0 -0
  29. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/panels/panel_scripts2.py +0 -0
  30. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/panels/panelsbase.py +0 -0
  31. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptartwork.py +0 -0
  32. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptcontrol.py +0 -0
  33. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptexceptions.py +0 -0
  34. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptgui.py +0 -0
  35. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptinfo.py +0 -0
  36. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptparams.py +0 -0
  37. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptreader.py +0 -0
  38. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptrunner.py +0 -0
  39. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/testlog/global_log_handler.py +0 -0
  40. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/testlog/log_to_text.py +0 -0
  41. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/testlog/logtoxml.py +0 -0
  42. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/testlog/printredirect.py +0 -0
  43. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript.egg-info/SOURCES.txt +0 -0
  44. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript.egg-info/dependency_links.txt +0 -0
  45. {happyscript-0.0.9 → happyscript-0.0.10}/happyscript.egg-info/top_level.txt +0 -0
  46. {happyscript-0.0.9 → happyscript-0.0.10}/increment_version.py +0 -0
  47. {happyscript-0.0.9 → happyscript-0.0.10}/publish.bat +0 -0
  48. {happyscript-0.0.9 → happyscript-0.0.10}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: happyscript
3
- Version: 0.0.9
3
+ Version: 0.0.10
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.9"
1
+ __version__ = "0.0.10"
2
2
  from .scriptmanager import ScriptManager
@@ -228,3 +228,6 @@ class FormMain(FormMain_Base):
228
228
  self.on_gui_timer()
229
229
  if self.on_log_timer is not None:
230
230
  self.on_log_timer()
231
+ def ClearLogs(self):
232
+ self.msgArea.clear()
233
+ self.logPane.clear()
@@ -10,8 +10,10 @@ class PanelLog( PanelLog_Base ):
10
10
  self.first_time_in_commandline = True
11
11
  self.loglevel = logging.INFO
12
12
  self._stop_log = False
13
- def OnBtnClearLog( self, event ):
13
+ def clear(self):
14
14
  self.wx_txtLog.Clear()
15
+ def OnBtnClearLog( self, event ):
16
+ self.clear()
15
17
  def HandleLog(self, logdata):
16
18
  if logdata.levelno < self.loglevel:
17
19
  return
@@ -11,6 +11,8 @@ class PanelMessages( PanelMessages_Base ):
11
11
  self.lstMessages.SetColumnWidth(1, 70)
12
12
  self.lstMessages.SetColumnWidth(2, 100)
13
13
  self.loglevel = logging.WARN+1
14
+ def clear(self):
15
+ self.lstMessages.DeleteAllItems()
14
16
  def OnListSize( self, event ):
15
17
  width = self.GetClientSize().width
16
18
  if width<160:
@@ -40,7 +42,7 @@ class PanelMessages( PanelMessages_Base ):
40
42
  self.lstMessages.EnsureVisible(cnt - 1)
41
43
  self.lstMessages.Update()
42
44
  def OnBtnClearList( self, event ):
43
- self.lstMessages.DeleteAllItems()
45
+ self.clear()
44
46
  def OnSelectLogLevel( self, event ):
45
47
  sel = self.m_cboLogLevel.GetStringSelection().lower()
46
48
  if sel=="warning":
@@ -237,12 +237,13 @@ class PanelTests( PanelTests_Base):
237
237
  num_fails = sum( 1 for x in self.tests if not x.passed)
238
238
  if num_fails==0:
239
239
  self.m_txtStatus.Label = "All test OK"
240
+ self.m_txtStatus.SetForegroundColour(wx.Colour( 0, 128, 0 ))
240
241
  elif num_fails==1:
241
242
  self.m_txtStatus.Label = "1 test failed !"
242
243
  self.m_txtStatus.SetForegroundColour(wx.RED)
243
244
  else:
244
245
  self.m_txtStatus.Label = "%d tests failed !" % num_fails
245
- self.m_txtStatus.SetForegroundColour(wx.RED)
246
+ self.m_txtStatus.SetForegroundColour(wx.RED)
246
247
  self.state = RunState.IDLE
247
248
  self.m_btnStart.Enabled = True
248
249
  self.m_btnStop.Enabled = False
@@ -96,6 +96,8 @@ class ScriptManager(object):
96
96
  self.logfiles_defined = False
97
97
  def stop_scripts(self):
98
98
  self.ctrl.stop()
99
+ def clear_log(self):
100
+ self.dialog.ClearLogs()
99
101
  def add_object(self, objName, theObject):
100
102
  self._script_params.add_object( objName, theObject)
101
103
  def add_objects(self, *args, **kwargs):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: happyscript
3
- Version: 0.0.9
3
+ Version: 0.0.10
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.9"
20
+ version = "0.0.10"
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