svghmi/svghmi.py
branchsvghmi
changeset 2779 75c6a31caca6
parent 2775 3b93409ba22c
child 2781 fbdd0fd8ee4f
--- a/svghmi/svghmi.py	Wed Sep 18 11:03:56 2019 +0200
+++ b/svghmi/svghmi.py	Wed Sep 18 11:09:35 2019 +0200
@@ -165,8 +165,6 @@
             new_node = HMITreeNode(path, path[-1], v["derived"], v["type"], v["vartype"])
             hmi_tree_root.place_node(new_node)
 
-        print(hmi_tree_root.pprint())
-
         variable_decl_array = []
         extern_variables_declarations = []
         buf_index = 0
@@ -366,6 +364,9 @@
 def _runtime_svghmi1_%(location)s_start():
     svghmi_root.putChild('%(view_name)s',File('%(xhtml)s'))
 
+def _runtime_svghmi1_%(location)s_stop():
+    svghmi_root.delEntity('%(view_name)s')
+
         """ % {"location": location_str,
                "xhtml": target_fname,
                "view_name": view_name})