equal
deleted
inserted
replaced
162 # ignores variables starting with _TMP_ |
162 # ignores variables starting with _TMP_ |
163 if path[-1].startswith("_TMP_"): |
163 if path[-1].startswith("_TMP_"): |
164 continue |
164 continue |
165 new_node = HMITreeNode(path, path[-1], v["derived"], v["type"], v["vartype"]) |
165 new_node = HMITreeNode(path, path[-1], v["derived"], v["type"], v["vartype"]) |
166 hmi_tree_root.place_node(new_node) |
166 hmi_tree_root.place_node(new_node) |
167 |
|
168 print(hmi_tree_root.pprint()) |
|
169 |
167 |
170 variable_decl_array = [] |
168 variable_decl_array = [] |
171 extern_variables_declarations = [] |
169 extern_variables_declarations = [] |
172 buf_index = 0 |
170 buf_index = 0 |
173 item_count = 0 |
171 item_count = 0 |
364 runtimefile = open(runtimefile_path, 'w') |
362 runtimefile = open(runtimefile_path, 'w') |
365 runtimefile.write(""" |
363 runtimefile.write(""" |
366 def _runtime_svghmi1_%(location)s_start(): |
364 def _runtime_svghmi1_%(location)s_start(): |
367 svghmi_root.putChild('%(view_name)s',File('%(xhtml)s')) |
365 svghmi_root.putChild('%(view_name)s',File('%(xhtml)s')) |
368 |
366 |
|
367 def _runtime_svghmi1_%(location)s_stop(): |
|
368 svghmi_root.delEntity('%(view_name)s') |
|
369 |
369 """ % {"location": location_str, |
370 """ % {"location": location_str, |
370 "xhtml": target_fname, |
371 "xhtml": target_fname, |
371 "view_name": view_name}) |
372 "view_name": view_name}) |
372 |
373 |
373 runtimefile.close() |
374 runtimefile.close() |