fixed another mistake in code_to_image @weckyy702

This commit is contained in:
weckyy702
2020-12-22 22:05:30 +01:00
parent 35341546eb
commit 3e5c80dd92
3 changed files with 6 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ def draw_while_loop_back(condition: str, x: int, y: int, xsize: int, ysize: int)
def NSD_save(filename: str):
"""Save the created file"""
img.save(filename + datei_endung ,".png")
img.save(filename + datei_endung ,"PNG")
#x_offset , y_offset, x_size, y_size = draw_while_loop("lol", 0, 0, 100, 200)
if __name__ == "__main__":

View File

@@ -5,4 +5,8 @@ from Iinstruction import *
def nassi(filepath:str, output_path: str):
NSD = NassiShneidermanDiagram(False)
NSD.load_from_file(filepath)
NSD.convert_to_image(output_path + "/Nassi-Shneider-Diagramm", 500)
NSD.convert_to_image(output_path + "/Nassi-Shneider-Diagramm", 500)
if __name__ == "__main__":
"""Debugging"""
nassi("res/input/input.java", "res/output")