happyscript 0.0.38__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.
Files changed (52) hide show
  1. {happyscript-0.0.38 → happyscript-0.0.40}/PKG-INFO +1 -1
  2. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/__init__.py +1 -1
  3. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/forms/form_askimage.py +1 -1
  4. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/forms/form_ontestfailure.py +1 -1
  5. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/forms/form_serials.py +45 -13
  6. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/forms/formsbase.py +113 -162
  7. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript.egg-info/PKG-INFO +1 -1
  8. {happyscript-0.0.38 → happyscript-0.0.40}/pyproject.toml +1 -1
  9. {happyscript-0.0.38 → happyscript-0.0.40}/README.md +0 -0
  10. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/charts/__init__.py +0 -0
  11. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/charts/chart.py +0 -0
  12. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/charts/histogram_chart.py +0 -0
  13. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/charts/histogram_series.py +0 -0
  14. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/charts/matplotlib_chart.py +0 -0
  15. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/charts/panel_charts.py +0 -0
  16. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/charts/scatter_chart.py +0 -0
  17. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/charts/scatter_series.py +0 -0
  18. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/charts/time_chart.py +0 -0
  19. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/charts/time_series.py +0 -0
  20. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/forms/form_askchoice.py +0 -0
  21. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/forms/form_main.py +0 -0
  22. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/forms/form_stop.py +0 -0
  23. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/imglib.py +0 -0
  24. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/panels/panel_log.py +0 -0
  25. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/panels/panel_messages.py +0 -0
  26. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/panels/panel_scripts2.py +0 -0
  27. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/panels/panel_tests.py +0 -0
  28. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/panels/panelsbase.py +0 -0
  29. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/scriptartwork.py +0 -0
  30. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/scriptcontrol.py +0 -0
  31. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/scriptexceptions.py +0 -0
  32. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/scriptgui.py +0 -0
  33. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/scriptinfo.py +0 -0
  34. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/scriptmanager.py +0 -0
  35. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/scriptparams.py +0 -0
  36. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/scriptreader.py +0 -0
  37. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/scriptrunner.py +0 -0
  38. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/splashmenu/exit.png +0 -0
  39. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/splashmenu/forms.py +0 -0
  40. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/splashmenu/splashmenuform.py +0 -0
  41. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/splashmenu/splashmenumain.py +0 -0
  42. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/testlog/global_log_handler.py +0 -0
  43. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/testlog/log_to_text.py +0 -0
  44. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/testlog/logtoxml.py +0 -0
  45. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/testlog/printredirect.py +0 -0
  46. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/userpanel/userpanel.py +0 -0
  47. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript/userpanel/userpanelvalue.py +0 -0
  48. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript.egg-info/SOURCES.txt +0 -0
  49. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript.egg-info/dependency_links.txt +0 -0
  50. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript.egg-info/requires.txt +0 -0
  51. {happyscript-0.0.38 → happyscript-0.0.40}/happyscript.egg-info/top_level.txt +0 -0
  52. {happyscript-0.0.38 → happyscript-0.0.40}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: happyscript
3
- Version: 0.0.38
3
+ Version: 0.0.40
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.38"
3
+ __version__ = "0.0.40"
4
4
 
5
5
  # With these statements, after doing 'import happyscript' you can do 'xxx = happyscript.ScriptManager()'
6
6
  #from .scriptmanager import ScriptManager
@@ -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("Ongeldig getal")
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' is gefaald.\nWat wil je doen ?" % testname
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
@@ -4,7 +4,7 @@ import wx
4
4
  from .formsbase import FormSerials_Base
5
5
 
6
6
  class FormSerials( FormSerials_Base):
7
- ''' Ask for up to 5 serial numbers.
7
+ ''' Ask for up to 10 serial numbers.
8
8
  A label and match pattern can be given for each number.
9
9
  Result is a list of the serials, or None if user cancelled.
10
10
  '''
@@ -15,13 +15,13 @@ class FormSerials( FormSerials_Base):
15
15
  def show(cls, count, labels = None, filters=None):
16
16
  ''' Instantiates the form (if necessary), then shows it.
17
17
 
18
- @param count how many numbers : 1 - 5 numbers
18
+ @param count how many numbers : 1 - 10 numbers
19
19
  @param labels List of strings to show left from each serial number entry field
20
20
  @param filters regular expression for each serial number. Items can be None
21
21
  @return list of serial numbers, or None if no user cancelled
22
22
  '''
23
23
 
24
- if count<1 or count>5:
24
+ if count<1 or count>10:
25
25
  return None
26
26
 
27
27
  if cls.static_item is None:
@@ -43,8 +43,10 @@ class FormSerials( FormSerials_Base):
43
43
  '''
44
44
  super().__init__(None)
45
45
 
46
- self.labels = [ self.m_lblSerial1, self.m_lblSerial2, self.m_lblSerial3, self.m_lblSerial4, self.m_lblSerial5 ]
47
- self.texts = [ self.m_txtSerial1, self.m_txtSerial2, self.m_txtSerial3, self.m_txtSerial4, self.m_txtSerial5 ]
46
+ self.labels = [ self.m_lblSerial1, self.m_lblSerial2, self.m_lblSerial3, self.m_lblSerial4, self.m_lblSerial5,
47
+ self.m_lblSerial6, self.m_lblSerial7, self.m_lblSerial8, self.m_lblSerial9, self.m_lblSerial10 ]
48
+ self.texts = [ self.m_txtSerial1, self.m_txtSerial2, self.m_txtSerial3, self.m_txtSerial4, self.m_txtSerial5,
49
+ self.m_txtSerial6, self.m_txtSerial7, self.m_txtSerial8, self.m_txtSerial9, self.m_txtSerial10 ]
48
50
 
49
51
  self.result = False
50
52
 
@@ -53,16 +55,16 @@ class FormSerials( FormSerials_Base):
53
55
  Initializes everything, shows the dialog, and then determines the result to return.
54
56
  '''
55
57
 
56
- if count<1 or count>5:
58
+ if count<1 or count>10:
57
59
  return None
58
60
 
59
61
  self.initializing = True # to silence event handlers on editboxes
60
62
 
61
63
  if labels is None: # default labels
62
- labels = [ "Board 1", "Board 2", "Board 3", "Board 4", "Board 5" ]
64
+ labels = [ "Board 1", "Board 2", "Board 3", "Board 4", "Board 5", "Board 6", "Board 7", "Board 8", "Board 9", "Board 10" ]
63
65
 
64
66
  if filters is None: # default filters = all None
65
- self.filters = [ None, None, None, None, None ]
67
+ self.filters = [ None, None, None, None, None, None, None, None, None, None ]
66
68
  else:
67
69
  self.filters = filters
68
70
 
@@ -80,7 +82,7 @@ class FormSerials( FormSerials_Base):
80
82
 
81
83
  self.valid.append(False) # init list with validity
82
84
 
83
- for i in range(count,5): # hide unused serials
85
+ for i in range(count,10): # hide unused serials
84
86
  self.texts[i].Hide()
85
87
  self.labels[i].Hide()
86
88
 
@@ -102,7 +104,7 @@ class FormSerials( FormSerials_Base):
102
104
  Color will be updated to green or red to indicate validity.
103
105
  'OK' button is enabled accordingly.
104
106
  '''
105
- if self.initializing or num<0 or num>4:
107
+ if self.initializing or num<0 or num>9:
106
108
  return
107
109
 
108
110
  txt = self.texts[num].Value.strip()
@@ -141,13 +143,28 @@ class FormSerials( FormSerials_Base):
141
143
  def OnText5( self, event ):
142
144
  self.handle_ontext(4)
143
145
 
146
+ def OnText6( self, event ):
147
+ self.handle_ontext(5)
148
+
149
+ def OnText7( self, event ):
150
+ self.handle_ontext(6)
151
+
152
+ def OnText8( self, event ):
153
+ self.handle_ontext(7)
154
+
155
+ def OnText9( self, event ):
156
+ self.handle_ontext(8)
157
+
158
+ def OnText10( self, event ):
159
+ self.handle_ontext(9)
160
+
144
161
  def handle_enter(self, num):
145
162
  ''' Moves to next field upon pressing enter in a serial number text field.
146
163
  '''
147
- if self.initializing or num<0 or num>4:
164
+ if self.initializing or num<0 or num>9:
148
165
  return
149
166
 
150
- if num==4 or not self.texts[num+1].IsShown():
167
+ if num==9 or not self.texts[num+1].IsShown():
151
168
  self.m_btnOK.SetFocus()
152
169
  else:
153
170
  self.texts[num+1].SetFocus()
@@ -167,6 +184,21 @@ class FormSerials( FormSerials_Base):
167
184
  def OnEnter5( self, event ):
168
185
  self.handle_enter(4)
169
186
 
187
+ def OnEnter6( self, event ):
188
+ self.handle_enter(5)
189
+
190
+ def OnEnter7( self, event ):
191
+ self.handle_enter(6)
192
+
193
+ def OnEnter8( self, event ):
194
+ self.handle_enter(7)
195
+
196
+ def OnEnter9( self, event ):
197
+ self.handle_enter(8)
198
+
199
+ def OnEnter10( self, event ):
200
+ self.handle_enter(9)
201
+
170
202
  def OnBtnCancel( self, event ):
171
203
  self.EndModal(wx.ID_CANCEL)
172
204
 
@@ -181,6 +213,6 @@ if __name__=="__main__":
181
213
  app = wx.App()
182
214
 
183
215
  result = FormSerials.show(3, ["Logic Board", "Power board", "Micro ZED"],
184
- ['([0-9])\w+', None, '([0-9])\w+'] )
216
+ [r'([0-9])\w+', None, r'([0-9])\w+'] )
185
217
 
186
218
  print(result)
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  ###########################################################################
4
- ## Python code generated with wxFormBuilder (version Oct 26 2018)
4
+ ## Python code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
5
5
  ## http://www.wxformbuilder.org/
6
6
  ##
7
7
  ## PLEASE DO *NOT* EDIT THIS FILE!
@@ -11,13 +11,13 @@ import wx
11
11
  import wx.xrc
12
12
  import wx.aui
13
13
 
14
- ID_BTN_TESTLIST = 1000
15
- ID_BTN_MESSAGES = 1001
16
- ID_BTN_LOGGING = 1002
17
- ID_BTN_SCRIPTS = 1003
18
- ID_BTN_PYTHON = 1004
19
- ID_BTN_CONTROLS = 1005
20
- ID_BTN_CHARTS = 1006
14
+ ID_BTN_TESTLIST = 6000
15
+ ID_BTN_MESSAGES = 6001
16
+ ID_BTN_LOGGING = 6002
17
+ ID_BTN_SCRIPTS = 6003
18
+ ID_BTN_PYTHON = 6004
19
+ ID_BTN_CONTROLS = 6005
20
+ ID_BTN_CHARTS = 6006
21
21
 
22
22
  ###########################################################################
23
23
  ## Class FormMain_Base
@@ -34,7 +34,7 @@ class FormMain_Base ( wx.Frame ):
34
34
  self.m_mgr.SetFlags(wx.aui.AUI_MGR_ALLOW_FLOATING|wx.aui.AUI_MGR_RECTANGLE_HINT|wx.aui.AUI_MGR_TRANSPARENT_HINT)
35
35
 
36
36
  self.m_guiTimer = wx.Timer()
37
- self.m_guiTimer.SetOwner( self, wx.ID_ANY )
37
+ self.m_guiTimer.SetOwner( self, self.m_guiTimer.GetId() )
38
38
  self.m_mnuToolbar = wx.aui.AuiToolBar( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.aui.AUI_TB_TEXT )
39
39
  self.m_mnuToolbar.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) )
40
40
  self.m_mnuToolbar.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) )
@@ -62,7 +62,7 @@ class FormMain_Base ( wx.Frame ):
62
62
  self.m_btnExit = self.m_mnuToolbar.AddTool( wx.ID_ANY, u"Exit", wx.ArtProvider.GetBitmap( wx.ART_QUIT, ), wx.NullBitmap, wx.ITEM_NORMAL, wx.EmptyString, wx.EmptyString, None )
63
63
 
64
64
  self.m_mnuToolbar.Realize()
65
- self.m_mgr.AddPane( self.m_mnuToolbar, wx.aui.AuiPaneInfo().Name( u"dfasdf" ).Top().Caption( u"ZXcZXcZXcZXC" ).CaptionVisible( False ).CloseButton( False ).PaneBorder( False ).Movable( False ).Dock().Resizable().FloatingSize( wx.DefaultSize ).BottomDockable( False ).TopDockable( False ).LeftDockable( False ).RightDockable( False ).Floatable( False ).Layer( 3 ) )
65
+ self.m_mgr.AddPane( self.m_mnuToolbar, wx.aui.AuiPaneInfo() .Name( u"dfasdf" ).Top() .Caption( u"ZXcZXcZXcZXC" ).CaptionVisible( False ).CloseButton( False ).PaneBorder( False ).Movable( False ).Dock().Resizable().FloatingSize( wx.DefaultSize ).BottomDockable( False ).TopDockable( False ).LeftDockable( False ).RightDockable( False ).Floatable( False ).Layer( 3 ) )
66
66
 
67
67
  self.m_statusBar1 = self.CreateStatusBar( 1, wx.STB_SIZEGRIP, wx.ID_ANY )
68
68
  self.m_mnuLayout = wx.Menu()
@@ -96,7 +96,7 @@ class FormMain_Base ( wx.Frame ):
96
96
 
97
97
  # Connect Events
98
98
  self.Bind( wx.EVT_CLOSE, self.OnFormClose )
99
- self.Bind( wx.EVT_TIMER, self.OnGuiTimer, id=wx.ID_ANY )
99
+ self.Bind( wx.EVT_TIMER, self.OnGuiTimer, id=self.m_guiTimer.GetId() )
100
100
  self.Bind( wx.EVT_TOOL, self.OnMnuLayoutClicked, id = self.m_btnLayout.GetId() )
101
101
  self.Bind( wx.EVT_TOOL, self.OnBtnTestList, id = self.m_btnTestList.GetId() )
102
102
  self.Bind( wx.EVT_TOOL, self.OnBtnMessages, id = self.m_btnMessages.GetId() )
@@ -117,7 +117,7 @@ class FormMain_Base ( wx.Frame ):
117
117
 
118
118
 
119
119
 
120
- # Virtual event handlers, overide them in your derived class
120
+ # Virtual event handlers, override them in your derived class
121
121
  def OnFormClose( self, event ):
122
122
  event.Skip()
123
123
 
@@ -174,9 +174,9 @@ class FormMain_Base ( wx.Frame ):
174
174
  class FormSerials_Base ( wx.Dialog ):
175
175
 
176
176
  def __init__( self, parent ):
177
- wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = u"Scan serial numbers", pos = wx.DefaultPosition, size = wx.Size( 400,287 ), style = wx.STAY_ON_TOP )
177
+ wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = u"Scan serial numbers", pos = wx.DefaultPosition, size = wx.Size( 400,431 ), style = wx.STAY_ON_TOP )
178
178
 
179
- self.SetSizeHints( wx.DefaultSize, wx.Size( 400,290 ) )
179
+ self.SetSizeHints( wx.DefaultSize, wx.Size( 400,500 ) )
180
180
 
181
181
  bSizer10 = wx.BoxSizer( wx.VERTICAL )
182
182
 
@@ -237,6 +237,56 @@ class FormSerials_Base ( wx.Dialog ):
237
237
 
238
238
  gSizer1.Add( self.m_txtSerial5, 1, wx.ALL|wx.EXPAND, 5 )
239
239
 
240
+ self.m_lblSerial6 = wx.StaticText( self, wx.ID_ANY, u"Board 6", wx.DefaultPosition, wx.DefaultSize, 0 )
241
+ self.m_lblSerial6.Wrap( -1 )
242
+
243
+ gSizer1.Add( self.m_lblSerial6, 2, wx.ALL|wx.EXPAND, 5 )
244
+
245
+ self.m_txtSerial6 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_PROCESS_ENTER )
246
+ self.m_txtSerial6.SetForegroundColour( wx.Colour( 0, 0, 0 ) )
247
+
248
+ gSizer1.Add( self.m_txtSerial6, 1, wx.ALL|wx.EXPAND, 5 )
249
+
250
+ self.m_lblSerial7 = wx.StaticText( self, wx.ID_ANY, u"Board 7", wx.DefaultPosition, wx.DefaultSize, 0 )
251
+ self.m_lblSerial7.Wrap( -1 )
252
+
253
+ gSizer1.Add( self.m_lblSerial7, 2, wx.ALL|wx.EXPAND, 5 )
254
+
255
+ self.m_txtSerial7 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_PROCESS_ENTER )
256
+ self.m_txtSerial7.SetForegroundColour( wx.Colour( 0, 0, 0 ) )
257
+
258
+ gSizer1.Add( self.m_txtSerial7, 1, wx.ALL|wx.EXPAND, 5 )
259
+
260
+ self.m_lblSerial8 = wx.StaticText( self, wx.ID_ANY, u"Board 8", wx.DefaultPosition, wx.DefaultSize, 0 )
261
+ self.m_lblSerial8.Wrap( -1 )
262
+
263
+ gSizer1.Add( self.m_lblSerial8, 2, wx.ALL|wx.EXPAND, 5 )
264
+
265
+ self.m_txtSerial8 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_PROCESS_ENTER )
266
+ self.m_txtSerial8.SetForegroundColour( wx.Colour( 0, 0, 0 ) )
267
+
268
+ gSizer1.Add( self.m_txtSerial8, 1, wx.ALL|wx.EXPAND, 5 )
269
+
270
+ self.m_lblSerial9 = wx.StaticText( self, wx.ID_ANY, u"Board 9", wx.DefaultPosition, wx.DefaultSize, 0 )
271
+ self.m_lblSerial9.Wrap( -1 )
272
+
273
+ gSizer1.Add( self.m_lblSerial9, 2, wx.ALL|wx.EXPAND, 5 )
274
+
275
+ self.m_txtSerial9 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_PROCESS_ENTER )
276
+ self.m_txtSerial9.SetForegroundColour( wx.Colour( 0, 0, 0 ) )
277
+
278
+ gSizer1.Add( self.m_txtSerial9, 1, wx.ALL|wx.EXPAND, 5 )
279
+
280
+ self.m_lblSerial10 = wx.StaticText( self, wx.ID_ANY, u"Board 10", wx.DefaultPosition, wx.DefaultSize, 0 )
281
+ self.m_lblSerial10.Wrap( -1 )
282
+
283
+ gSizer1.Add( self.m_lblSerial10, 2, wx.ALL|wx.EXPAND, 5 )
284
+
285
+ self.m_txtSerial10 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_PROCESS_ENTER )
286
+ self.m_txtSerial10.SetForegroundColour( wx.Colour( 0, 0, 0 ) )
287
+
288
+ gSizer1.Add( self.m_txtSerial10, 1, wx.ALL|wx.EXPAND, 5 )
289
+
240
290
 
241
291
  bSizer10.Add( gSizer1, 1, wx.EXPAND, 5 )
242
292
 
@@ -274,6 +324,16 @@ class FormSerials_Base ( wx.Dialog ):
274
324
  self.m_txtSerial4.Bind( wx.EVT_TEXT_ENTER, self.OnEnter4 )
275
325
  self.m_txtSerial5.Bind( wx.EVT_TEXT, self.OnText5 )
276
326
  self.m_txtSerial5.Bind( wx.EVT_TEXT_ENTER, self.OnEnter5 )
327
+ self.m_txtSerial6.Bind( wx.EVT_TEXT, self.OnText6 )
328
+ self.m_txtSerial6.Bind( wx.EVT_TEXT_ENTER, self.OnEnter6 )
329
+ self.m_txtSerial7.Bind( wx.EVT_TEXT, self.OnText7 )
330
+ self.m_txtSerial7.Bind( wx.EVT_TEXT_ENTER, self.OnEnter7 )
331
+ self.m_txtSerial8.Bind( wx.EVT_TEXT, self.OnText8 )
332
+ self.m_txtSerial8.Bind( wx.EVT_TEXT_ENTER, self.OnEnter8 )
333
+ self.m_txtSerial9.Bind( wx.EVT_TEXT, self.OnText9 )
334
+ self.m_txtSerial9.Bind( wx.EVT_TEXT_ENTER, self.OnEnter9 )
335
+ self.m_txtSerial10.Bind( wx.EVT_TEXT, self.OnText10 )
336
+ self.m_txtSerial10.Bind( wx.EVT_TEXT_ENTER, self.OnEnter10 )
277
337
  self.m_btnOK.Bind( wx.EVT_BUTTON, self.OnBtnOK )
278
338
  self.m_btnCancel.Bind( wx.EVT_BUTTON, self.OnBtnCancel )
279
339
 
@@ -281,7 +341,7 @@ class FormSerials_Base ( wx.Dialog ):
281
341
  pass
282
342
 
283
343
 
284
- # Virtual event handlers, overide them in your derived class
344
+ # Virtual event handlers, override them in your derived class
285
345
  def OnText1( self, event ):
286
346
  event.Skip()
287
347
 
@@ -312,6 +372,36 @@ class FormSerials_Base ( wx.Dialog ):
312
372
  def OnEnter5( self, event ):
313
373
  event.Skip()
314
374
 
375
+ def OnText6( self, event ):
376
+ event.Skip()
377
+
378
+ def OnEnter6( self, event ):
379
+ event.Skip()
380
+
381
+ def OnText7( self, event ):
382
+ event.Skip()
383
+
384
+ def OnEnter7( self, event ):
385
+ event.Skip()
386
+
387
+ def OnText8( self, event ):
388
+ event.Skip()
389
+
390
+ def OnEnter8( self, event ):
391
+ event.Skip()
392
+
393
+ def OnText9( self, event ):
394
+ event.Skip()
395
+
396
+ def OnEnter9( self, event ):
397
+ event.Skip()
398
+
399
+ def OnText10( self, event ):
400
+ event.Skip()
401
+
402
+ def OnEnter10( self, event ):
403
+ event.Skip()
404
+
315
405
  def OnBtnOK( self, event ):
316
406
  event.Skip()
317
407
 
@@ -386,7 +476,7 @@ class FormAskImage_Base ( wx.Dialog ):
386
476
  pass
387
477
 
388
478
 
389
- # Virtual event handlers, overide them in your derived class
479
+ # Virtual event handlers, override them in your derived class
390
480
  def OnButtonOK( self, event ):
391
481
  event.Skip()
392
482
 
@@ -457,7 +547,7 @@ class FormAskChoice_Base ( wx.Dialog ):
457
547
  pass
458
548
 
459
549
 
460
- # Virtual event handlers, overide them in your derived class
550
+ # Virtual event handlers, override them in your derived class
461
551
  def OnButtonOK( self, event ):
462
552
  event.Skip()
463
553
 
@@ -480,7 +570,7 @@ class FormOnTestFailure_Base ( wx.Dialog ):
480
570
 
481
571
  bSizer14 = wx.BoxSizer( wx.VERTICAL )
482
572
 
483
- self.m_txtMessage = wx.StaticText( self, wx.ID_ANY, u"Test xxxx is gefaald.\nWat wil je doen ?", wx.DefaultPosition, wx.DefaultSize, 0 )
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 )
484
574
  self.m_txtMessage.Wrap( -1 )
485
575
 
486
576
  self.m_txtMessage.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
@@ -488,17 +578,17 @@ class FormOnTestFailure_Base ( wx.Dialog ):
488
578
 
489
579
  bSizer14.Add( self.m_txtMessage, 0, wx.ALL|wx.EXPAND, 5 )
490
580
 
491
- self.m_btnRetry = wx.Button( self, wx.ID_ANY, u"Test herhalen", wx.DefaultPosition, wx.DefaultSize, 0 )
581
+ self.m_btnRetry = wx.Button( self, wx.ID_ANY, u"Repeat this test", wx.DefaultPosition, wx.DefaultSize, 0 )
492
582
  self.m_btnRetry.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
493
583
 
494
584
  bSizer14.Add( self.m_btnRetry, 1, wx.ALL|wx.EXPAND, 5 )
495
585
 
496
- self.m_btnSkipTest = wx.Button( self, wx.ID_ANY, u"Test overslaan", wx.DefaultPosition, wx.DefaultSize, 0 )
586
+ self.m_btnSkipTest = wx.Button( self, wx.ID_ANY, u"Skip this test", wx.DefaultPosition, wx.DefaultSize, 0 )
497
587
  self.m_btnSkipTest.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
498
588
 
499
589
  bSizer14.Add( self.m_btnSkipTest, 1, wx.ALL|wx.EXPAND, 5 )
500
590
 
501
- self.m_btnStopTests = wx.Button( self, wx.ID_ANY, u"Alle testen stoppen", wx.DefaultPosition, wx.DefaultSize, 0 )
591
+ self.m_btnStopTests = wx.Button( self, wx.ID_ANY, u"Stop all tests", wx.DefaultPosition, wx.DefaultSize, 0 )
502
592
  self.m_btnStopTests.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
503
593
 
504
594
  bSizer14.Add( self.m_btnStopTests, 1, wx.ALL|wx.EXPAND, 5 )
@@ -518,7 +608,7 @@ class FormOnTestFailure_Base ( wx.Dialog ):
518
608
  pass
519
609
 
520
610
 
521
- # Virtual event handlers, overide them in your derived class
611
+ # Virtual event handlers, override them in your derived class
522
612
  def OnBtnRetry( self, event ):
523
613
  event.Skip()
524
614
 
@@ -529,145 +619,6 @@ class FormOnTestFailure_Base ( wx.Dialog ):
529
619
  event.Skip()
530
620
 
531
621
 
532
- ###########################################################################
533
- ## Class Test_Panel
534
- ###########################################################################
535
-
536
- class Test_Panel ( wx.Panel ):
537
-
538
- def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.Size( 579,501 ), style = wx.TAB_TRAVERSAL, name = wx.EmptyString ):
539
- wx.Panel.__init__ ( self, parent, id = id, pos = pos, size = size, style = style, name = name )
540
-
541
- bSizer22 = wx.BoxSizer( wx.VERTICAL )
542
-
543
- sbSizer2 = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"GPIO" ), wx.VERTICAL )
544
-
545
- bSizer24 = wx.BoxSizer( wx.VERTICAL )
546
-
547
- bSizer25 = wx.BoxSizer( wx.HORIZONTAL )
548
-
549
- self.m_staticText14 = wx.StaticText( sbSizer2.GetStaticBox(), wx.ID_ANY, u"Red LED", wx.DefaultPosition, wx.DefaultSize, 0 )
550
- self.m_staticText14.Wrap( -1 )
551
-
552
- bSizer25.Add( self.m_staticText14, 20, wx.ALIGN_CENTER|wx.ALL, 5 )
553
-
554
- self.m_button24 = wx.Button( sbSizer2.GetStaticBox(), wx.ID_ANY, u"Off", wx.DefaultPosition, wx.DefaultSize, 0 )
555
- self.m_button24.SetMaxSize( wx.Size( 75,-1 ) )
556
-
557
- bSizer25.Add( self.m_button24, 1, wx.ALL, 5 )
558
-
559
- self.m_button25 = wx.Button( sbSizer2.GetStaticBox(), wx.ID_ANY, u"On", wx.DefaultPosition, wx.DefaultSize, 0 )
560
- self.m_button25.SetMaxSize( wx.Size( 75,-1 ) )
561
-
562
- bSizer25.Add( self.m_button25, 1, wx.ALL, 5 )
563
-
564
-
565
- bSizer24.Add( bSizer25, 0, wx.EXPAND, 5 )
566
-
567
-
568
- sbSizer2.Add( bSizer24, 0, wx.EXPAND, 5 )
569
-
570
-
571
- sbSizer2.Add( ( 0, 0), 1, wx.EXPAND, 5 )
572
-
573
-
574
- bSizer22.Add( sbSizer2, 0, wx.EXPAND, 5 )
575
-
576
- sbSizer3 = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"Basic Actions" ), wx.VERTICAL )
577
-
578
- bSizer26 = wx.BoxSizer( wx.VERTICAL )
579
-
580
- self.m_button26 = wx.Button( sbSizer3.GetStaticBox(), wx.ID_ANY, u"Enable Ethernet", wx.DefaultPosition, wx.DefaultSize, 0 )
581
- bSizer26.Add( self.m_button26, 0, wx.ALL, 5 )
582
-
583
- self.m_button27 = wx.Button( sbSizer3.GetStaticBox(), wx.ID_ANY, u"Enable video", wx.DefaultPosition, wx.DefaultSize, 0 )
584
- bSizer26.Add( self.m_button27, 0, wx.ALL, 5 )
585
-
586
- bSizer27 = wx.BoxSizer( wx.HORIZONTAL )
587
-
588
- self.m_staticText15 = wx.StaticText( sbSizer3.GetStaticBox(), wx.ID_ANY, u"MyLabel", wx.DefaultPosition, wx.DefaultSize, 0 )
589
- self.m_staticText15.Wrap( -1 )
590
-
591
- bSizer27.Add( self.m_staticText15, 0, wx.ALIGN_CENTER|wx.ALL, 5 )
592
-
593
- self.m_button28 = wx.Button( sbSizer3.GetStaticBox(), wx.ID_ANY, u"VGA", wx.DefaultPosition, wx.DefaultSize, 0 )
594
- bSizer27.Add( self.m_button28, 1, wx.ALL, 5 )
595
-
596
- self.m_button29 = wx.Button( sbSizer3.GetStaticBox(), wx.ID_ANY, u"NTSC", wx.DefaultPosition, wx.DefaultSize, 0 )
597
- bSizer27.Add( self.m_button29, 1, wx.ALL, 5 )
598
-
599
- self.m_button30 = wx.Button( sbSizer3.GetStaticBox(), wx.ID_ANY, u"HDMI", wx.DefaultPosition, wx.DefaultSize, 0 )
600
- bSizer27.Add( self.m_button30, 1, wx.ALL, 5 )
601
-
602
-
603
- bSizer26.Add( bSizer27, 1, wx.EXPAND, 5 )
604
-
605
- bSizer28 = wx.BoxSizer( wx.HORIZONTAL )
606
-
607
- self.m_staticText16 = wx.StaticText( sbSizer3.GetStaticBox(), wx.ID_ANY, u"Speed", wx.DefaultPosition, wx.DefaultSize, 0 )
608
- self.m_staticText16.Wrap( -1 )
609
-
610
- bSizer28.Add( self.m_staticText16, 0, wx.ALL, 5 )
611
-
612
- self.m_slider1 = wx.Slider( sbSizer3.GetStaticBox(), wx.ID_ANY, 50, 0, 100, wx.DefaultPosition, wx.DefaultSize, wx.SL_HORIZONTAL )
613
- bSizer28.Add( self.m_slider1, 2, wx.ALL, 5 )
614
-
615
- self.m_spinCtrl1 = wx.SpinCtrl( sbSizer3.GetStaticBox(), wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.SP_ARROW_KEYS, 0, 100, 0 )
616
- self.m_spinCtrl1.Enable( False )
617
- self.m_spinCtrl1.SetMaxSize( wx.Size( 75,-1 ) )
618
-
619
- bSizer28.Add( self.m_spinCtrl1, 0, wx.ALL, 5 )
620
-
621
-
622
- bSizer26.Add( bSizer28, 1, wx.EXPAND, 5 )
623
-
624
-
625
- sbSizer3.Add( bSizer26, 1, wx.EXPAND, 5 )
626
-
627
-
628
- bSizer22.Add( sbSizer3, 0, wx.EXPAND, 5 )
629
-
630
-
631
- bSizer22.Add( ( 0, 0), 1, wx.EXPAND, 5 )
632
-
633
-
634
- self.SetSizer( bSizer22 )
635
- self.Layout()
636
-
637
- # Connect Events
638
- self.m_button24.Bind( wx.EVT_BUTTON, self.OnBinaryOff )
639
- self.m_button25.Bind( wx.EVT_BUTTON, self.OnBinaryOn )
640
- self.m_button26.Bind( wx.EVT_BUTTON, self.OnSingleButton )
641
- self.m_button27.Bind( wx.EVT_BUTTON, self.OnSingleButton )
642
- self.m_button28.Bind( wx.EVT_BUTTON, self.OnMultiButton )
643
- self.m_button29.Bind( wx.EVT_BUTTON, self.OnMultiButton )
644
- self.m_button30.Bind( wx.EVT_BUTTON, self.OnMultiButton )
645
- self.m_slider1.Bind( wx.EVT_SCROLL, self.OnSingleSliderScroll )
646
-
647
- def __del__( self ):
648
- pass
649
-
650
-
651
- # Virtual event handlers, overide them in your derived class
652
- def OnBinaryOff( self, event ):
653
- event.Skip()
654
-
655
- def OnBinaryOn( self, event ):
656
- event.Skip()
657
-
658
- def OnSingleButton( self, event ):
659
- event.Skip()
660
-
661
-
662
- def OnMultiButton( self, event ):
663
- event.Skip()
664
-
665
-
666
-
667
- def OnSingleSliderScroll( self, event ):
668
- event.Skip()
669
-
670
-
671
622
  ###########################################################################
672
623
  ## Class FormStop_base
673
624
  ###########################################################################
@@ -702,7 +653,7 @@ class FormStop_base ( wx.Dialog ):
702
653
  pass
703
654
 
704
655
 
705
- # Virtual event handlers, overide them in your derived class
656
+ # Virtual event handlers, override them in your derived class
706
657
  def OnBtnStop( self, event ):
707
658
  event.Skip()
708
659
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: happyscript
3
- Version: 0.0.38
3
+ Version: 0.0.40
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.38"
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