diff --git a/src/gui/imgview.py b/src/gui/imgview.py --- a/src/gui/imgview.py +++ b/src/gui/imgview.py @@ -31,7 +31,7 @@ class ImgView(ResizableCanvas): if self._img: img=self._img.copy() img.thumbnail((int(self._width),int(self._height))) - self._tkImg=ImageTk.PhotoImage(img) # just to save the image from the garbage collector + self._tkImg=ImageTk.PhotoImage(img) # just to save the image from garbage collector self.create_image(self._width//2, self._height//2, anchor="center", image=self._tkImg) for corner in self._corners.corners: @@ -62,7 +62,6 @@ class ImgView(ResizableCanvas): self._imgSizeCoef=max(widthRatio,heightRatio) self._img=img - self.configure(width=wo,height=ho) ## Stores a grid corner located at x,y coordinates. def addCorner(self,x,y):