varoius improvements
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user