visualization.Window.done(): choose to realign or not (default: yes)
This commit is contained in:
parent
87eff61ae2
commit
ed0fe0dafc
@ -57,6 +57,7 @@ class Window:
|
||||
self.__canvas.scale(tk.ALL, 0, 0, scale, scale)
|
||||
self.__canvas.update()
|
||||
|
||||
def done(self) -> None:
|
||||
self.realign()
|
||||
def done(self, realign: bool = True) -> None:
|
||||
if realign:
|
||||
self.realign()
|
||||
self.__canvas.mainloop()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user