This commit is contained in:
oleting
2021-02-09 15:56:19 +01:00

View File

@@ -1,6 +1,4 @@
#!/usr/bin/env python
"""NassiShneidermann.py: #TODO"""
"""NassiShneidermann.py: Classes for the Java Instruction found by the Interpreter"""
__author__ = "Weckyy702"
@@ -20,7 +18,7 @@ import draw.code_to_image as cti
class Overwrite_behaviour(IntEnum):
SKIP = 0
OVERWWRITE = 1
OVERWRITE = 1
RANDOM_NAME = 2
OB = Overwrite_behaviour
@@ -62,9 +60,9 @@ class NassiShneidermanDiagram:
return filepath
def convert_to_image(self, output_path: str, on_conflict: Overwrite_behaviour=OB.SKIP) -> bool:
i = 1
i = 0
for scope in self.function_scopes:
cancel = one_line_progress_meter('Progress', i+1, len(self.function_scopes), '-PROGRESSBAR-')
cancel = one_line_progress_meter('Progress', i, len(self.function_scopes), '-PROGRESSBAR-')
if not cancel:
return False