diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index dd84ea7..dbb4eb3 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -24,7 +24,7 @@ A clear and concise description of what you expected to happen. If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - - OS: [e.g. iOS] + - OS: [e.g. MacOS] - Browser [e.g. chrome, safari] - Version [e.g. 22] diff --git a/gui/utils.py b/gui/utils.py index 534025c..476579b 100644 --- a/gui/utils.py +++ b/gui/utils.py @@ -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)