plugins/svgui/svgui.py
changeset 55 9c26e67c041a
parent 49 45dc6a944ab6
child 65 e55d6faee9d1
equal deleted inserted replaced
54:ff82e7088ec5 55:9c26e67c041a
   759         current_location = self.GetCurrentLocation()
   759         current_location = self.GetCurrentLocation()
   760         self.BusNumber = "_".join(map(lambda x:str(x), current_location))
   760         self.BusNumber = "_".join(map(lambda x:str(x), current_location))
   761         progname = "SVGUI_" + self.BusNumber
   761         progname = "SVGUI_" + self.BusNumber
   762         self.GenerateProgram(buildpath, progname)
   762         self.GenerateProgram(buildpath, progname)
   763         Gen_C_file = os.path.join(buildpath, progname+".cpp" )
   763         Gen_C_file = os.path.join(buildpath, progname+".cpp" )
   764         return [(Gen_C_file,"")],""
   764         return [(Gen_C_file,"")],"",True
   765     
   765     
   766     def BlockTypesFactory(self):
   766     def BlockTypesFactory(self):
   767         def generate_svgui_block(generator, block, body, link):
   767         def generate_svgui_block(generator, block, body, link):
   768             name = block.getInstanceName()
   768             name = block.getInstanceName()
   769             block_id = self.GetElementIdFromName(name)
   769             block_id = self.GetElementIdFromName(name)