PEATDB/PILView.py
def displayFile(self, img, width=None, height=None):
        """Show the image file on the canvas"""
        self.imgcanvas.delete('img')
        top=0;left=0
        if width != None:
            fw=int(width)
            fh=int(height)            
            img, top, left = self.doImageRescale(img, fw, fh)
        self.tkimg = ImageTk.PhotoImage(img)
        imgobj = self.imgcanvas.create_image(0, 0, image=self.tkimg, anchor='nw', tag='img')
        
        return
Show the image file on the canvas
Show the image file on the canvas
Show the image file on the canvas
def displayFile(self, img, width=None, height=None):
        self.imgcanvas.delete('img')
        top=0;left=0
        if width != None:
            fw=int(width)
            fh=int(height)            
            img, top, left = self.doImageRescale(img, fw, fh)
        self.tkimg = ImageTk.PhotoImage(img)
        imgobj = self.imgcanvas.create_image(0, 0, image=self.tkimg, anchor='nw', tag='img')
        return
def displayFile ( self , img , width = None , height = None ) : self . imgcanvas . delete ( 'img' ) top = 0 ; left = 0 if width != None : fw = int ( width ) fh = int ( height ) img , top , left = self . doImageRescale ( img , fw , fh ) self . tkimg = ImageTk . PhotoImage ( img ) imgobj = self . imgcanvas . create_image ( 0 , 0 , image = self . tkimg , anchor = 'nw' , tag = 'img' ) return
Show the image file on the canvas
Show the image file on the canvas
"""Show the image file on the canvas"""
self
img
width
height