[Tkinter-discuss] How to get DIB into Tkinter frame?

Fredrik Lundh fredrik at pythonware.com
Fri Sep 1 11:23:19 CEST 2006


Reiner M. Stoss wrote:

> The PaintPicture method sends the picture into
> the PictureBox Picture1.
>
> Now how to do the same in Python/Tkinter?
> I have something as this:
>
> ---
> p = win32com.client.dynamic.Dispatch('PinPoint.Plate')
> p.AttachFITS('M:/Images/LaSagra/20060828/012128+170000-sagra21-S001-R001.fts')
> m = p.NewPlateDIB()
> m.Create(1, 1, 1, 1)
> m.Render(60000, 0)
> m.PaintPicture(im)

is PaintPicture rendering into a HDC?

can you get it to render to an ordinary bitmap?

</F> 





More information about the Tkinter-discuss mailing list