tests/svghmi_v2/py_ext_0@py_ext/pyfile.xml
changeset 3416 53c66c4aefa3
parent 3415 c270b6c8162b
child 3422 700b39cb4525
child 3427 f748161de54b
equal deleted inserted replaced
3415:c270b6c8162b 3416:53c66c4aefa3
     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>