implemented generation of multiples NSDs and spelling

This commit is contained in:
weckyy702
2020-12-28 12:57:53 +01:00
parent 2052e9a084
commit c3a61da020
4 changed files with 31 additions and 26 deletions

View File

@@ -7,12 +7,14 @@ from interpreter.NassiShneidermann import NassiShneidermanDiagram
from draw.Iinstruction import *
def nassi(filepath: str, output_path: str, outputname: str, gui, font_filepath: Optional[str]=None):
def nassi(input_path: str, output_path: str, outputname: str, gui, font_filepath: Optional[str]=None):
NSD = NassiShneidermanDiagram(gui.debug_mode)
if font_filepath != None:
NSD.set_font(font_filepath)
NSD.load_from_file(filepath)
NSD.convert_to_image((output_path + '/' + outputname), 500)
NSD.load_from_file(input_path)
NSD.convert_to_image(output_path, outputname, 500)
def output(values):