From 20d344f37473403b4b3bb785160d6dd19466f1ca Mon Sep 17 00:00:00 2001 From: oleting Date: Tue, 22 Dec 2020 22:00:21 +0100 Subject: [PATCH] + fixes --- gui.py | 7 ++++--- to_nassi.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gui.py b/gui.py index 68f8bd0..bbb7317 100644 --- a/gui.py +++ b/gui.py @@ -88,11 +88,12 @@ while True: try: file_path = os.path.join( values["-JAVA FOLDER-"], #values["-JAVA FILE LIST-"][0] - ) + ) + sg.popup_annoying('Succsessful created!' , title='Info') + except : print('No file selected') - sg.popup_annoying('Succsessful created!' , title='Info') - nassi(file_path, output_path) + nassi(file_path, str(output_path)) elif values['-JAVA FOLDER-']: print('No Output') elif values['-OUTPUT FOLDER-']: diff --git a/to_nassi.py b/to_nassi.py index 5df33bb..6f17416 100644 --- a/to_nassi.py +++ b/to_nassi.py @@ -5,4 +5,4 @@ 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) \ No newline at end of file + NSD.convert_to_image(output_path + "/Nassi-Shneider-Diagramm", 500) \ No newline at end of file