varoius improvements

This commit is contained in:
weckyy702 committed 2021-01-24 23:39:34 +01:00
1 parent 7634804b27
commit cbad444743
5 files changed
+34 -37

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ class NassiShneidermanDiagram:
def convert_to_image(self, output_path: str, on_conflict: Overwrite_behaviour=OB.SKIP) -> bool:
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
+1 -1
View File
@@ -16,7 +16,7 @@ class Function_scope(Iterable):
return int(h)
def get_width(self) -> int:
w = 200.0
w = 200.0 #minimum width for every block
for inst in self.contents:
w = max(w, inst.getblkwidth())
return int(w)