print the screen shot in python

kyosohma at gmail.com kyosohma at gmail.com
Tue Apr 3 14:38:38 EDT 2007


On Apr 3, 1:16 pm, "gslm" <slm_gu... at hotmail.com> wrote:
> Thanks,
> I use TKinter,os:Xp home,python25.
> I want to print all my application's view, except the close-minimize
> icons.

I don't know enough about Tkinter, but you can use the graphics module
according to this post that should take a screenshot:

http://snippets.dzone.com/posts/show/398

You should also navigate through this series of posts on taking
screenshots using PIL and the win32 module:
http://mail.python.org/pipermail/python-win32/2003-January/000714.html

The following post has a short script using the os module to capture a
screenshot too:
http://livingcode.blogspot.com/2006/03/screenshot-in-cocoa-python.html

Hopefully this will give you some direction. Other than that, we'll
have to wait for a Tkinter guru.

Mike




More information about the Python-list mailing list