equal
deleted
inserted
replaced
71 |
71 |
72 runtimefile.write(self.GetPythonCode()) |
72 runtimefile.write(self.GetPythonCode()) |
73 runtimefile.write(""" |
73 runtimefile.write(""" |
74 %(declare)s |
74 %(declare)s |
75 |
75 |
76 def _runtime_%(location)s_begin(): |
76 def _runtime_%(location)s_start(): |
77 global %(global)s |
77 global %(global)s |
78 |
78 |
79 def OnCloseFrame(evt): |
79 def OnCloseFrame(evt): |
80 wx.MessageBox(_("Please stop PLC to close")) |
80 wx.MessageBox(_("Please stop PLC to close")) |
81 |
81 |
82 %(init)s |
82 %(init)s |
83 |
83 |
84 def _runtime_%(location)s_cleanup(): |
84 def _runtime_%(location)s_stop(): |
85 global %(global)s |
85 global %(global)s |
86 |
86 |
87 %(cleanup)s |
87 %(cleanup)s |
88 |
88 |
89 """ % {"location": location_str, |
89 """ % {"location": location_str, |