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.
- {happyscript-0.0.9 → happyscript-0.0.10}/PKG-INFO +1 -1
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/__init__.py +1 -1
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/form_main.py +3 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/panels/panel_log.py +3 -1
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/panels/panel_messages.py +3 -1
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/panels/panel_tests.py +2 -1
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptmanager.py +2 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript.egg-info/PKG-INFO +1 -1
- {happyscript-0.0.9 → happyscript-0.0.10}/pyproject.toml +1 -1
- {happyscript-0.0.9 → happyscript-0.0.10}/README.md +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/copy_code.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/__init__.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/chart.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/histogram_chart.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/histogram_series.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/matplotlib_chart.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/panel_charts.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/scatter_chart.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/scatter_series.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/time_chart.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/charts/time_series.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/form_askchoice.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/form_askimage.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/form_ontestfailure.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/form_serials.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/form_stop.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/forms/formsbase.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/imglib.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/panels/panel_scripts2.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/panels/panelsbase.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptartwork.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptcontrol.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptexceptions.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptgui.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptinfo.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptparams.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptreader.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/scriptrunner.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/testlog/global_log_handler.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/testlog/log_to_text.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/testlog/logtoxml.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript/testlog/printredirect.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript.egg-info/SOURCES.txt +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript.egg-info/dependency_links.txt +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/happyscript.egg-info/top_level.txt +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/increment_version.py +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/publish.bat +0 -0
- {happyscript-0.0.9 → happyscript-0.0.10}/setup.cfg +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "0.0.
|
|
1
|
+
__version__ = "0.0.10"
|
|
2
2
|
from .scriptmanager import ScriptManager
|
|
@@ -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
|
|
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.
|
|
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
|
-
|
|
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):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|