Merge branch '0.2' of https://github.com/plexx-dev/Nassi-Shneiderman-Diagramm-Generator into 0.2
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
"""NassiShneidermann.py: Classes for the Java Instruction found by the Interpreter"""
|
||||||
|
|
||||||
"""NassiShneidermann.py: #TODO"""
|
|
||||||
|
|
||||||
__author__ = "Weckyy702"
|
__author__ = "Weckyy702"
|
||||||
|
|
||||||
@@ -20,7 +18,7 @@ import draw.code_to_image as cti
|
|||||||
|
|
||||||
class Overwrite_behaviour(IntEnum):
|
class Overwrite_behaviour(IntEnum):
|
||||||
SKIP = 0
|
SKIP = 0
|
||||||
OVERWWRITE = 1
|
OVERWRITE = 1
|
||||||
RANDOM_NAME = 2
|
RANDOM_NAME = 2
|
||||||
|
|
||||||
OB = Overwrite_behaviour
|
OB = Overwrite_behaviour
|
||||||
@@ -62,9 +60,9 @@ class NassiShneidermanDiagram:
|
|||||||
return filepath
|
return filepath
|
||||||
|
|
||||||
def convert_to_image(self, output_path: str, on_conflict: Overwrite_behaviour=OB.SKIP) -> bool:
|
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:
|
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:
|
if not cancel:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user