# HG changeset patch
# User Edouard Tisserant
# Date 1573717592 -3600
# Node ID 77b2a3757e66020639a0db3d2f62c90502d3e548
# Parent  2cabc47738859cc732c570c1031ad76db26efcca
SVGHMI: add a class attribute to HMI Tree nodes, set when using HMI_NODE

diff -r 2cabc4773885 -r 77b2a3757e66 svghmi/svghmi.py
--- a/svghmi/svghmi.py	Wed Nov 13 11:22:53 2019 +0100
+++ b/svghmi/svghmi.py	Thu Nov 14 08:46:32 2019 +0100
@@ -85,6 +85,9 @@
         if self.path is not None:
             attribs["path"] = ".".join(self.path)
 
+        if self.hmiclass is not None:
+            attribs["class"] = self.hmiclass
+
         if add_hash:
             attribs["hash"] = ",".join(map(str,self.hash()))