wxglade_hmi/wxglade_hmi.py
changeset 1131 f794fbff8f02
parent 1124 b1705000eba1
child 1132 28f96aa9c070
equal deleted inserted replaced
1130:f96e0254f0ce 1131:f794fbff8f02
    86         runtimefile.write("## User internal user variables and routines\n" +
    86         runtimefile.write("## User internal user variables and routines\n" +
    87                           sections_code["globals"] + "\n")
    87                           sections_code["globals"] + "\n")
    88         
    88         
    89         for section in ["init", "cleanup"]:
    89         for section in ["init", "cleanup"]:
    90             if not sections_code[section]:
    90             if not sections_code[section]:
    91                 sections_code = "    pass"
    91                 sections_code[section] = "    pass"
    92         
    92         
    93         sections_code.update({
    93         sections_code.update({
    94             "location": location_str,
    94             "location": location_str,
    95             "declare_hmi": "\n".join(map(lambda x:"%s = None" % x, hmi_frames.keys())),
    95             "declare_hmi": "\n".join(map(lambda x:"%s = None" % x, hmi_frames.keys())),
    96             "global_hmi": ",".join(hmi_frames.keys()),
    96             "global_hmi": ",".join(hmi_frames.keys()),