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.
- {happyscript-0.0.34 → happyscript-0.0.38}/PKG-INFO +2 -2
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/__init__.py +1 -1
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/panels/panel_tests.py +10 -2
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/panels/panelsbase.py +506 -505
- happyscript-0.0.38/happyscript/userpanel/userpanel.py +191 -0
- happyscript-0.0.38/happyscript/userpanel/userpanelvalue.py +50 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript.egg-info/PKG-INFO +2 -2
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript.egg-info/SOURCES.txt +0 -1
- {happyscript-0.0.34 → happyscript-0.0.38}/pyproject.toml +1 -1
- happyscript-0.0.34/happyscript/userpanel/userpanel.py +0 -194
- happyscript-0.0.34/happyscript/userpanel/userpaneltimer.py +0 -46
- happyscript-0.0.34/happyscript/userpanel/userpanelvalue.py +0 -26
- {happyscript-0.0.34 → happyscript-0.0.38}/README.md +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/__init__.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/chart.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/histogram_chart.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/histogram_series.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/matplotlib_chart.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/panel_charts.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/scatter_chart.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/scatter_series.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/time_chart.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/charts/time_series.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/form_askchoice.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/form_askimage.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/form_main.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/form_ontestfailure.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/form_serials.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/form_stop.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/forms/formsbase.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/imglib.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/panels/panel_log.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/panels/panel_messages.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/panels/panel_scripts2.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptartwork.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptcontrol.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptexceptions.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptgui.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptinfo.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptmanager.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptparams.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptreader.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/scriptrunner.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/splashmenu/exit.png +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/splashmenu/forms.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/splashmenu/splashmenuform.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/splashmenu/splashmenumain.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/testlog/global_log_handler.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/testlog/log_to_text.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/testlog/logtoxml.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript/testlog/printredirect.py +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript.egg-info/dependency_links.txt +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript.egg-info/requires.txt +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/happyscript.egg-info/top_level.txt +0 -0
- {happyscript-0.0.34 → happyscript-0.0.38}/setup.cfg +0 -0
|
@@ -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
|