fixed bug report text
This commit is contained in:
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -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]
|
||||
|
||||
|
||||
10
gui/utils.py
10
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user