print the screen shot in python

G

gslm

Hi!
I want to print an application view in python.I use labels and frames
in my program.And ý want to know if it is possible to print all of the
view of my program?
Thanks a lot...
 
K

kyosohma

Hi!
I want to print an application view in python.I use labels and frames
in my program.And ý want to know if it is possible to print all of the
view of my program?
Thanks a lot...

You need to give us more details. Are you using wxPython, Tkinter,
pyQT or what? And what version of python and OS? Do you want to take a
picture of the programs interface and print that with Python?

Mike
 
G

gslm

Thanks,
I use TKinter,os:Xp home,python25.
I want to print all my application's view, except the close-minimize
icons.
 
K

kyosohma

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
 
G

gslm

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

Thanks again, I have used ImageGrab function according to a member of
this group.But I have problems and I have just sent a question about
them.
If you look, I'll be very happy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top