happyscript 0.0.34__tar.gz → 0.0.38__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 (55) hide show
  1. {happyscript-0.0.34 → happyscript-0.0.38}/PKG-INFO +2 -2
  2. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/__init__.py +1 -1
  3. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/panels/panel_tests.py +10 -2
  4. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/panels/panelsbase.py +506 -505
  5. happyscript-0.0.38/happyscript/userpanel/userpanel.py +191 -0
  6. happyscript-0.0.38/happyscript/userpanel/userpanelvalue.py +50 -0
  7. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript.egg-info/PKG-INFO +2 -2
  8. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript.egg-info/SOURCES.txt +0 -1
  9. {happyscript-0.0.34 → happyscript-0.0.38}/pyproject.toml +1 -1
  10. happyscript-0.0.34/happyscript/userpanel/userpanel.py +0 -194
  11. happyscript-0.0.34/happyscript/userpanel/userpaneltimer.py +0 -46
  12. happyscript-0.0.34/happyscript/userpanel/userpanelvalue.py +0 -26
  13. {happyscript-0.0.34 → happyscript-0.0.38}/README.md +0 -0
  14. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/__init__.py +0 -0
  15. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/chart.py +0 -0
  16. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/histogram_chart.py +0 -0
  17. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/histogram_series.py +0 -0
  18. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/matplotlib_chart.py +0 -0
  19. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/panel_charts.py +0 -0
  20. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/scatter_chart.py +0 -0
  21. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/scatter_series.py +0 -0
  22. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/time_chart.py +0 -0
  23. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/time_series.py +0 -0
  24. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/form_askchoice.py +0 -0
  25. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/form_askimage.py +0 -0
  26. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/form_main.py +0 -0
  27. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/form_ontestfailure.py +0 -0
  28. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/form_serials.py +0 -0
  29. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/form_stop.py +0 -0
  30. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/formsbase.py +0 -0
  31. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/imglib.py +0 -0
  32. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/panels/panel_log.py +0 -0
  33. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/panels/panel_messages.py +0 -0
  34. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/panels/panel_scripts2.py +0 -0
  35. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptartwork.py +0 -0
  36. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptcontrol.py +0 -0
  37. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptexceptions.py +0 -0
  38. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptgui.py +0 -0
  39. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptinfo.py +0 -0
  40. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptmanager.py +0 -0
  41. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptparams.py +0 -0
  42. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptreader.py +0 -0
  43. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptrunner.py +0 -0
  44. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/splashmenu/exit.png +0 -0
  45. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/splashmenu/forms.py +0 -0
  46. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/splashmenu/splashmenuform.py +0 -0
  47. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/splashmenu/splashmenumain.py +0 -0
  48. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/testlog/global_log_handler.py +0 -0
  49. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/testlog/log_to_text.py +0 -0
  50. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/testlog/logtoxml.py +0 -0
  51. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/testlog/printredirect.py +0 -0
  52. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript.egg-info/dependency_links.txt +0 -0
  53. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript.egg-info/requires.txt +0 -0
  54. {happyscript-0.0.34 → happyscript-0.0.38}/happyscript.egg-info/top_level.txt +0 -0
  55. {happyscript-0.0.34 → happyscript-0.0.38}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: happyscript
3
- Version: 0.0.34
3
+ Version: 0.0.38
4
4
  Summary: Framework for running scripts
5
5
  Requires-Python: >=3.5
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  """HappyScript - handy script launcher"""
2
2
 
3
- __version__ = "0.0.34"
3
+ __version__ = "0.0.38"
4
4
 
5
5
  # With these statements, after doing 'import happyscript' you can do 'xxx = happyscript.ScriptManager()'
6
6
  #from .scriptmanager import ScriptManager
@@ -67,7 +67,7 @@ class PanelTests( PanelTests_Base):
67
67
  '''
68
68
  logger = logging.getLogger("happyscript")
69
69
 
70
- def __init__( self, parent, mngr ):
70
+ def __init__( self, parent, mngr:'ScriptManager' ):
71
71
  ''' @param parent Control to put this panel in. Typically a notebook.
72
72
  @param mngr The script manager
73
73
  '''
@@ -180,6 +180,7 @@ class PanelTests( PanelTests_Base):
180
180
 
181
181
  def OnBtnStopClick( self, event ):
182
182
  self.__run_action = RunAction.STOP_ALL
183
+ self.mngr.stop_scripts() # stop script if running
183
184
 
184
185
  def reset_icons(self):
185
186
  ''' Set all the icons right for a new test run
@@ -223,7 +224,9 @@ class PanelTests( PanelTests_Base):
223
224
  self.logger.debug("Starting new test sequence")
224
225
  self.m_txtStatus.Label = "Starting"
225
226
  self.m_txtStatus.SetForegroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOWTEXT))
226
-
227
+ self.m_lstTests.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) )
228
+ self.m_lstTests.Refresh()
229
+
227
230
  self.reset_icons()
228
231
 
229
232
  self.m_btnStart.Enabled = False
@@ -351,12 +354,17 @@ class PanelTests( PanelTests_Base):
351
354
  if num_fails==0:
352
355
  self.m_txtStatus.Label = "All test OK"
353
356
  self.m_txtStatus.SetForegroundColour(wx.Colour( 0, 128, 0 ))
357
+ self.m_lstTests.SetBackgroundColour( wx.Colour( 226, 239, 217 ) )
354
358
  elif num_fails==1:
355
359
  self.m_txtStatus.Label = "1 test failed !"
356
360
  self.m_txtStatus.SetForegroundColour(wx.RED)
361
+ self.m_lstTests.SetBackgroundColour( wx.Colour( 255, 201, 201 ) )
357
362
  else:
358
363
  self.m_txtStatus.Label = "%d tests failed !" % num_fails
359
364
  self.m_txtStatus.SetForegroundColour(wx.RED)
365
+ self.m_lstTests.SetBackgroundColour( wx.Colour( 255, 201, 201 ) )
366
+
367
+ self.m_lstTests.Refresh()
360
368
 
361
369
  self.state = RunState.IDLE
362
370
  self.m_btnStart.Enabled = True