fixed bug report text

This commit is contained in:
weckyy702
2020-12-27 20:23:19 +01:00
parent 616dd414fc
commit b924e5edb0
2 changed files with 5 additions and 7 deletions

View File

@@ -1,18 +1,16 @@
import logging
import os
from typing import Optional
from interpreter.NassiShneidermann import NassiShneidermanDiagram
from draw.Iinstruction import *
def nassi(filepath: str, output_path: str, outputname, gui, font_filepath=None):
def nassi(filepath: str, output_path: str, outputname: str, gui, font_filepath: Optional[str]=None):
NSD = NassiShneidermanDiagram(gui.debug_mode)
# if font_filepath is None:
# pass
# else:
# if font_filepath is not None or font_filepath != "":
if font_filepath != None:
NSD.set_font(str(font_filepath))
NSD.set_font(font_filepath)
NSD.load_from_file(filepath)
NSD.convert_to_image(output_path, outputname, 500)