tests/projects/svghmi_v2/py_ext_0@py_ext/pyfile.xml
changeset 4027 59a331f80858
parent 4026 a3cf9f635952
child 4028 d9b772623fd9
equal deleted inserted replaced
4026:a3cf9f635952 4027:59a331f80858
     1 <?xml version='1.0' encoding='utf-8'?>
       
     2 <PyFile xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       
     3   <variables>
       
     4     <variable name="SomePLCglobal" type="HMI_STRING" initial="'blaf'" onchange="MyOnChangeFunc"/>
       
     5   </variables>
       
     6   <globals>
       
     7     <xhtml:p><![CDATA[
       
     8 
       
     9 def MyOnChangeFunc(changed_var_name):
       
    10     print changed_var_name + ": " + getattr(PLCGlobals, changed_var_name)
       
    11 
       
    12 ]]></xhtml:p>
       
    13   </globals>
       
    14   <init>
       
    15     <xhtml:p><![CDATA[
       
    16 ]]></xhtml:p>
       
    17   </init>
       
    18   <cleanup>
       
    19     <xhtml:p><![CDATA[
       
    20 ]]></xhtml:p>
       
    21   </cleanup>
       
    22   <start>
       
    23     <xhtml:p><![CDATA[
       
    24 ]]></xhtml:p>
       
    25   </start>
       
    26   <stop>
       
    27     <xhtml:p><![CDATA[
       
    28 ]]></xhtml:p>
       
    29   </stop>
       
    30 </PyFile>