wxglade_hmi/wxglade_hmi.py
changeset 1014 e2f7d6c95db0
parent 834 d613696aad01
child 1053 b0ac30ba7eaf
child 1061 02f371f3e063
equal deleted inserted replaced
1013:d54ca1ec9090 1014:e2f7d6c95db0
    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,