happyscript 0.0.39__tar.gz → 0.0.40__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.39 → happyscript-0.0.40}/PKG-INFO +1 -1
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/__init__.py +1 -1
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/forms/form_askimage.py +1 -1
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/forms/form_ontestfailure.py +1 -1
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/forms/formsbase.py +4 -143
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript.egg-info/PKG-INFO +1 -1
- {happyscript-0.0.39 → happyscript-0.0.40}/pyproject.toml +1 -1
- {happyscript-0.0.39 → happyscript-0.0.40}/README.md +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/charts/__init__.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/charts/chart.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/charts/histogram_chart.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/charts/histogram_series.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/charts/matplotlib_chart.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/charts/panel_charts.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/charts/scatter_chart.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/charts/scatter_series.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/charts/time_chart.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/charts/time_series.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/forms/form_askchoice.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/forms/form_main.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/forms/form_serials.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/forms/form_stop.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/imglib.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/panels/panel_log.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/panels/panel_messages.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/panels/panel_scripts2.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/panels/panel_tests.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/panels/panelsbase.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/scriptartwork.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/scriptcontrol.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/scriptexceptions.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/scriptgui.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/scriptinfo.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/scriptmanager.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/scriptparams.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/scriptreader.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/scriptrunner.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/splashmenu/exit.png +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/splashmenu/forms.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/splashmenu/splashmenuform.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/splashmenu/splashmenumain.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/testlog/global_log_handler.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/testlog/log_to_text.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/testlog/logtoxml.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/testlog/printredirect.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/userpanel/userpanel.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript/userpanel/userpanelvalue.py +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript.egg-info/SOURCES.txt +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript.egg-info/dependency_links.txt +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript.egg-info/requires.txt +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/happyscript.egg-info/top_level.txt +0 -0
- {happyscript-0.0.39 → happyscript-0.0.40}/setup.cfg +0 -0
|
@@ -84,7 +84,7 @@ class FormAskImage( FormAskImage_Base):
|
|
|
84
84
|
self.result = float(self.m_txtValue.Value)
|
|
85
85
|
self.EndModal(wx.ID_OK)
|
|
86
86
|
except ValueError:
|
|
87
|
-
wx.MessageBox("
|
|
87
|
+
wx.MessageBox(f"'{self.m_txtValue.Value}' is not a valid number")
|
|
88
88
|
|
|
89
89
|
elif self.yesno:
|
|
90
90
|
self.result = True
|
|
@@ -20,7 +20,7 @@ class FormOnTestFailure( FormOnTestFailure_Base):
|
|
|
20
20
|
if cls.static_item is None:
|
|
21
21
|
cls.static_item = FormOnTestFailure()
|
|
22
22
|
|
|
23
|
-
cls.static_item.m_txtMessage.Label = "Test '%s'
|
|
23
|
+
cls.static_item.m_txtMessage.Label = "Test '%s' failed.\nWhat do you want to do ?" % testname
|
|
24
24
|
cls.static_item.ShowModal()
|
|
25
25
|
|
|
26
26
|
return cls.static_item.result
|
|
@@ -570,7 +570,7 @@ class FormOnTestFailure_Base ( wx.Dialog ):
|
|
|
570
570
|
|
|
571
571
|
bSizer14 = wx.BoxSizer( wx.VERTICAL )
|
|
572
572
|
|
|
573
|
-
self.m_txtMessage = wx.StaticText( self, wx.ID_ANY, u"Test xxxx
|
|
573
|
+
self.m_txtMessage = wx.StaticText( self, wx.ID_ANY, u"Test xxxx failed.\nWhat do you want to do ?", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
574
574
|
self.m_txtMessage.Wrap( -1 )
|
|
575
575
|
|
|
576
576
|
self.m_txtMessage.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
|
|
@@ -578,17 +578,17 @@ class FormOnTestFailure_Base ( wx.Dialog ):
|
|
|
578
578
|
|
|
579
579
|
bSizer14.Add( self.m_txtMessage, 0, wx.ALL|wx.EXPAND, 5 )
|
|
580
580
|
|
|
581
|
-
self.m_btnRetry = wx.Button( self, wx.ID_ANY, u"
|
|
581
|
+
self.m_btnRetry = wx.Button( self, wx.ID_ANY, u"Repeat this test", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
582
582
|
self.m_btnRetry.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
|
|
583
583
|
|
|
584
584
|
bSizer14.Add( self.m_btnRetry, 1, wx.ALL|wx.EXPAND, 5 )
|
|
585
585
|
|
|
586
|
-
self.m_btnSkipTest = wx.Button( self, wx.ID_ANY, u"
|
|
586
|
+
self.m_btnSkipTest = wx.Button( self, wx.ID_ANY, u"Skip this test", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
587
587
|
self.m_btnSkipTest.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
|
|
588
588
|
|
|
589
589
|
bSizer14.Add( self.m_btnSkipTest, 1, wx.ALL|wx.EXPAND, 5 )
|
|
590
590
|
|
|
591
|
-
self.m_btnStopTests = wx.Button( self, wx.ID_ANY, u"
|
|
591
|
+
self.m_btnStopTests = wx.Button( self, wx.ID_ANY, u"Stop all tests", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
592
592
|
self.m_btnStopTests.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
|
|
593
593
|
|
|
594
594
|
bSizer14.Add( self.m_btnStopTests, 1, wx.ALL|wx.EXPAND, 5 )
|
|
@@ -619,145 +619,6 @@ class FormOnTestFailure_Base ( wx.Dialog ):
|
|
|
619
619
|
event.Skip()
|
|
620
620
|
|
|
621
621
|
|
|
622
|
-
###########################################################################
|
|
623
|
-
## Class Test_Panel
|
|
624
|
-
###########################################################################
|
|
625
|
-
|
|
626
|
-
class Test_Panel ( wx.Panel ):
|
|
627
|
-
|
|
628
|
-
def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.Size( 579,501 ), style = wx.TAB_TRAVERSAL, name = wx.EmptyString ):
|
|
629
|
-
wx.Panel.__init__ ( self, parent, id = id, pos = pos, size = size, style = style, name = name )
|
|
630
|
-
|
|
631
|
-
bSizer22 = wx.BoxSizer( wx.VERTICAL )
|
|
632
|
-
|
|
633
|
-
sbSizer2 = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"GPIO" ), wx.VERTICAL )
|
|
634
|
-
|
|
635
|
-
bSizer24 = wx.BoxSizer( wx.VERTICAL )
|
|
636
|
-
|
|
637
|
-
bSizer25 = wx.BoxSizer( wx.HORIZONTAL )
|
|
638
|
-
|
|
639
|
-
self.m_staticText14 = wx.StaticText( sbSizer2.GetStaticBox(), wx.ID_ANY, u"Red LED", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
640
|
-
self.m_staticText14.Wrap( -1 )
|
|
641
|
-
|
|
642
|
-
bSizer25.Add( self.m_staticText14, 20, wx.ALIGN_CENTER|wx.ALL, 5 )
|
|
643
|
-
|
|
644
|
-
self.m_button24 = wx.Button( sbSizer2.GetStaticBox(), wx.ID_ANY, u"Off", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
645
|
-
self.m_button24.SetMaxSize( wx.Size( 75,-1 ) )
|
|
646
|
-
|
|
647
|
-
bSizer25.Add( self.m_button24, 1, wx.ALL, 5 )
|
|
648
|
-
|
|
649
|
-
self.m_button25 = wx.Button( sbSizer2.GetStaticBox(), wx.ID_ANY, u"On", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
650
|
-
self.m_button25.SetMaxSize( wx.Size( 75,-1 ) )
|
|
651
|
-
|
|
652
|
-
bSizer25.Add( self.m_button25, 1, wx.ALL, 5 )
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
bSizer24.Add( bSizer25, 0, wx.EXPAND, 5 )
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
sbSizer2.Add( bSizer24, 0, wx.EXPAND, 5 )
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
sbSizer2.Add( ( 0, 0), 1, wx.EXPAND, 5 )
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
bSizer22.Add( sbSizer2, 0, wx.EXPAND, 5 )
|
|
665
|
-
|
|
666
|
-
sbSizer3 = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"Basic Actions" ), wx.VERTICAL )
|
|
667
|
-
|
|
668
|
-
bSizer26 = wx.BoxSizer( wx.VERTICAL )
|
|
669
|
-
|
|
670
|
-
self.m_button26 = wx.Button( sbSizer3.GetStaticBox(), wx.ID_ANY, u"Enable Ethernet", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
671
|
-
bSizer26.Add( self.m_button26, 0, wx.ALL, 5 )
|
|
672
|
-
|
|
673
|
-
self.m_button27 = wx.Button( sbSizer3.GetStaticBox(), wx.ID_ANY, u"Enable video", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
674
|
-
bSizer26.Add( self.m_button27, 0, wx.ALL, 5 )
|
|
675
|
-
|
|
676
|
-
bSizer27 = wx.BoxSizer( wx.HORIZONTAL )
|
|
677
|
-
|
|
678
|
-
self.m_staticText15 = wx.StaticText( sbSizer3.GetStaticBox(), wx.ID_ANY, u"MyLabel", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
679
|
-
self.m_staticText15.Wrap( -1 )
|
|
680
|
-
|
|
681
|
-
bSizer27.Add( self.m_staticText15, 0, wx.ALIGN_CENTER|wx.ALL, 5 )
|
|
682
|
-
|
|
683
|
-
self.m_button28 = wx.Button( sbSizer3.GetStaticBox(), wx.ID_ANY, u"VGA", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
684
|
-
bSizer27.Add( self.m_button28, 1, wx.ALL, 5 )
|
|
685
|
-
|
|
686
|
-
self.m_button29 = wx.Button( sbSizer3.GetStaticBox(), wx.ID_ANY, u"NTSC", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
687
|
-
bSizer27.Add( self.m_button29, 1, wx.ALL, 5 )
|
|
688
|
-
|
|
689
|
-
self.m_button30 = wx.Button( sbSizer3.GetStaticBox(), wx.ID_ANY, u"HDMI", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
690
|
-
bSizer27.Add( self.m_button30, 1, wx.ALL, 5 )
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
bSizer26.Add( bSizer27, 1, wx.EXPAND, 5 )
|
|
694
|
-
|
|
695
|
-
bSizer28 = wx.BoxSizer( wx.HORIZONTAL )
|
|
696
|
-
|
|
697
|
-
self.m_staticText16 = wx.StaticText( sbSizer3.GetStaticBox(), wx.ID_ANY, u"Speed", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
698
|
-
self.m_staticText16.Wrap( -1 )
|
|
699
|
-
|
|
700
|
-
bSizer28.Add( self.m_staticText16, 0, wx.ALL, 5 )
|
|
701
|
-
|
|
702
|
-
self.m_slider1 = wx.Slider( sbSizer3.GetStaticBox(), wx.ID_ANY, 50, 0, 100, wx.DefaultPosition, wx.DefaultSize, wx.SL_HORIZONTAL )
|
|
703
|
-
bSizer28.Add( self.m_slider1, 2, wx.ALL, 5 )
|
|
704
|
-
|
|
705
|
-
self.m_spinCtrl1 = wx.SpinCtrl( sbSizer3.GetStaticBox(), wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.SP_ARROW_KEYS, 0, 100, 0 )
|
|
706
|
-
self.m_spinCtrl1.Enable( False )
|
|
707
|
-
self.m_spinCtrl1.SetMaxSize( wx.Size( 75,-1 ) )
|
|
708
|
-
|
|
709
|
-
bSizer28.Add( self.m_spinCtrl1, 0, wx.ALL, 5 )
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
bSizer26.Add( bSizer28, 1, wx.EXPAND, 5 )
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
sbSizer3.Add( bSizer26, 1, wx.EXPAND, 5 )
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
bSizer22.Add( sbSizer3, 0, wx.EXPAND, 5 )
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
bSizer22.Add( ( 0, 0), 1, wx.EXPAND, 5 )
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
self.SetSizer( bSizer22 )
|
|
725
|
-
self.Layout()
|
|
726
|
-
|
|
727
|
-
# Connect Events
|
|
728
|
-
self.m_button24.Bind( wx.EVT_BUTTON, self.OnBinaryOff )
|
|
729
|
-
self.m_button25.Bind( wx.EVT_BUTTON, self.OnBinaryOn )
|
|
730
|
-
self.m_button26.Bind( wx.EVT_BUTTON, self.OnSingleButton )
|
|
731
|
-
self.m_button27.Bind( wx.EVT_BUTTON, self.OnSingleButton )
|
|
732
|
-
self.m_button28.Bind( wx.EVT_BUTTON, self.OnMultiButton )
|
|
733
|
-
self.m_button29.Bind( wx.EVT_BUTTON, self.OnMultiButton )
|
|
734
|
-
self.m_button30.Bind( wx.EVT_BUTTON, self.OnMultiButton )
|
|
735
|
-
self.m_slider1.Bind( wx.EVT_SCROLL, self.OnSingleSliderScroll )
|
|
736
|
-
|
|
737
|
-
def __del__( self ):
|
|
738
|
-
pass
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
# Virtual event handlers, override them in your derived class
|
|
742
|
-
def OnBinaryOff( self, event ):
|
|
743
|
-
event.Skip()
|
|
744
|
-
|
|
745
|
-
def OnBinaryOn( self, event ):
|
|
746
|
-
event.Skip()
|
|
747
|
-
|
|
748
|
-
def OnSingleButton( self, event ):
|
|
749
|
-
event.Skip()
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
def OnMultiButton( self, event ):
|
|
753
|
-
event.Skip()
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
def OnSingleSliderScroll( self, event ):
|
|
758
|
-
event.Skip()
|
|
759
|
-
|
|
760
|
-
|
|
761
622
|
###########################################################################
|
|
762
623
|
## Class FormStop_base
|
|
763
624
|
###########################################################################
|
|
@@ -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.
|
|
20
|
+
version = "0.0.40"
|
|
21
21
|
readme = "README.md"
|
|
22
22
|
requires-python = ">=3.5"
|
|
23
23
|
dependencies = [ "wxpython", "numpy" ]
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|