svghmi/svghmi.py
branchwxPython4
changeset 3344 4a08728a2ea4
parent 3312 2c0511479b18
parent 3341 dce1d5413310
child 3379 c3d462118d37
equal deleted inserted replaced
3340:a13da70a8ae4 3344:4a08728a2ea4
    53     def GetLibraryPath(self):
    53     def GetLibraryPath(self):
    54          return paths.AbsNeighbourFile(__file__, "pous.xml")
    54          return paths.AbsNeighbourFile(__file__, "pous.xml")
    55 
    55 
    56     def Generate_C(self, buildpath, varlist, IECCFLAGS):
    56     def Generate_C(self, buildpath, varlist, IECCFLAGS):
    57         global hmi_tree_root, on_hmitree_update, maxConnectionsTotal
    57         global hmi_tree_root, on_hmitree_update, maxConnectionsTotal
       
    58 
       
    59         maxConnectionsTotal = 0
    58 
    60 
    59         already_found_watchdog = False
    61         already_found_watchdog = False
    60         found_SVGHMI_instance = False
    62         found_SVGHMI_instance = False
    61         for CTNChild in self.GetCTR().IterChildren():
    63         for CTNChild in self.GetCTR().IterChildren():
    62             if isinstance(CTNChild, SVGHMI):
    64             if isinstance(CTNChild, SVGHMI):