PEATDB/PILView.py
def updateCanvas(self, event=None):
        """We want the image to fit to the window"""
        if event != None:
            w = event.width
            h = event.height
        else:
            w=None;h=None       
        if self.currentimage != None:
            self.displayFile(self.currentimage, width=w, height=h)
        return
We want the image to fit to the window
We want the image to fit to the window
We want the image to fit to the window
def updateCanvas(self, event=None):
        if event != None:
            w = event.width
            h = event.height
        else:
            w=None;h=None       
        if self.currentimage != None:
            self.displayFile(self.currentimage, width=w, height=h)
        return
def updateCanvas ( self , event = None ) : if event != None : w = event . width h = event . height else : w = None ; h = None if self . currentimage != None : self . displayFile ( self . currentimage , width = w , height = h ) return
We want the image to fit to the window
We want the image to fit to the window
"""We want the image to fit to the window"""
self
event