Exemplo n.º 1
0
    def Update(self, bitmapHandle=None, listing=None):
        """ Updates the Labelled Image using the current parameters and
            Listing is a tuple that provides the imlist handle and index"""

        bmp = Conversions.piltoimage(self.thumbX.copy()).ConvertToBitmap()
        bmp = TEXT.write(self.dateText,bmp,self.align,self.font,self.fontcolor,self.position)

        if(bitmapHandle):
            bitmapHandle.SetBitmap(bmp)
            bitmapHandle.Center()
            bitmapHandle.Refresh()
        else:
            return bmp
Exemplo n.º 2
0
    def Update(self, bitmapHandle=None, listing=None):
        """ Updates the Labelled Image using the current parameters and
            Listing is a tuple that provides the imlist handle and index"""

        bmp = Conversions.piltoimage(self.thumbX.copy()).ConvertToBitmap()
        bmp = TEXT.write(self.dateText, bmp, self.align, self.font,
                         self.fontcolor, self.position)

        if (bitmapHandle):
            bitmapHandle.SetBitmap(bmp)
            bitmapHandle.Center()
            bitmapHandle.Refresh()
        else:
            return bmp