From 23d275175d3e39a467e0a0a55f8e7d7bdacc69e2 Mon Sep 17 00:00:00 2001 From: weckyy702 Date: Tue, 9 Feb 2021 15:47:23 +0100 Subject: [PATCH 1/2] merge --- interpreter/NassiShneidermann.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interpreter/NassiShneidermann.py b/interpreter/NassiShneidermann.py index dfb88a5..33cc220 100644 --- a/interpreter/NassiShneidermann.py +++ b/interpreter/NassiShneidermann.py @@ -54,9 +54,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 From 9675f24d303de1dd10d5b993791507cd64cee17a Mon Sep 17 00:00:00 2001 From: weckyy702 Date: Tue, 9 Feb 2021 15:55:27 +0100 Subject: [PATCH 2/2] spelling --- interpreter/NassiShneidermann.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/interpreter/NassiShneidermann.py b/interpreter/NassiShneidermann.py index 590a4ba..8ac642d 100644 --- a/interpreter/NassiShneidermann.py +++ b/interpreter/NassiShneidermann.py @@ -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