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) |